Skip to content

Commit 09cbb60

Browse files
committed
sntpc: Update library crate
1 parent 72f7e2f commit 09cbb60

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "sntpc"
3-
version = "0.3.6"
3+
version = "0.3.7"
44
description = "Library for making SNTP requests"
55
homepage = "https://github.com/vpetrigo/sntpc"
66
repository = "https://github.com/vpetrigo/sntpc"
77
documentation = "https://docs.rs/sntpc"
88
readme = "README.md"
9-
categories = ["date-and-time", "no-std", "embedded"]
9+
categories = ["date-and-time", "no-std", "embedded", "asynchronous"]
1010
keywords = ["sntp", "ntp", "sntp-client", "ntp-client"]
1111
license = "BSD-3-Clause"
1212
authors = ["Vladimir Petrigo <[email protected]>"]

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! Put this in your `Cargo.toml`:
1313
//! ```cargo
1414
//! [dependencies]
15-
//! sntpc = "0.3.6"
15+
//! sntpc = "0.3.7"
1616
//! ```
1717
//!
1818
//! ## Features
@@ -21,6 +21,7 @@
2121
//! - `std`: includes functionality that depends on the standard library
2222
//! - `utils`: includes functionality that mostly OS specific and allows system time sync
2323
//! - `log`: enables library debug output during execution
24+
//! - `async`: enables asynchronous feature support
2425
//!
2526
//! <div class="example-wrap" style="display:inline-block"><pre class="compile_fail" style="white-space:normal;font:inherit;">
2627
//!
@@ -97,6 +98,8 @@
9798
//!
9899
//! For more complex example with custom timestamp generator and UDP socket implementation, see
99100
//! `examples/smoltcp_request.rs`.
101+
//!
102+
//! For usage SNTP-client in an asynchronous environment, see `examples/tokio.rs`
100103
#![cfg_attr(not(feature = "std"), no_std)]
101104

102105
#[cfg(feature = "utils")]
@@ -826,7 +829,6 @@ mod sntpc_tests {
826829
"time.apple.com:123",
827830
"time.cloudflare.com:123",
828831
"time.facebook.com:123",
829-
"stratum1.net:123",
830832
];
831833

832834
for pool in &pools {

0 commit comments

Comments
 (0)