From 09cbb606100604583cce7f66c7c27362f510d7b8 Mon Sep 17 00:00:00 2001 From: Vladimir Petrigo Date: Sun, 7 Jan 2024 17:58:02 +0100 Subject: [PATCH] sntpc: Update library crate --- Cargo.toml | 4 ++-- src/lib.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6aa3ee7..4cef28c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "sntpc" -version = "0.3.6" +version = "0.3.7" description = "Library for making SNTP requests" homepage = "https://github.com/vpetrigo/sntpc" repository = "https://github.com/vpetrigo/sntpc" documentation = "https://docs.rs/sntpc" readme = "README.md" -categories = ["date-and-time", "no-std", "embedded"] +categories = ["date-and-time", "no-std", "embedded", "asynchronous"] keywords = ["sntp", "ntp", "sntp-client", "ntp-client"] license = "BSD-3-Clause" authors = ["Vladimir Petrigo "] diff --git a/src/lib.rs b/src/lib.rs index a422592..57e9390 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ //! Put this in your `Cargo.toml`: //! ```cargo //! [dependencies] -//! sntpc = "0.3.6" +//! sntpc = "0.3.7" //! ``` //! //! ## Features @@ -21,6 +21,7 @@ //! - `std`: includes functionality that depends on the standard library //! - `utils`: includes functionality that mostly OS specific and allows system time sync //! - `log`: enables library debug output during execution +//! - `async`: enables asynchronous feature support //! //!
 //!
@@ -97,6 +98,8 @@
 //!
 //! For more complex example with custom timestamp generator and UDP socket implementation, see
 //! `examples/smoltcp_request.rs`.
+//!
+//! For usage SNTP-client in an asynchronous environment, see `examples/tokio.rs`
 #![cfg_attr(not(feature = "std"), no_std)]
 
 #[cfg(feature = "utils")]
@@ -826,7 +829,6 @@ mod sntpc_tests {
             "time.apple.com:123",
             "time.cloudflare.com:123",
             "time.facebook.com:123",
-            "stratum1.net:123",
         ];
 
         for pool in &pools {