[package]
edition = "2024"
name = "sntpc"
version = "0.9.0"
authors = ["Vladimir Petrigo <vladimir.petrigo@gmail.com>"]
build = false
exclude = [
".*",
"benches/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for making SNTP requests"
readme = "README.md"
keywords = [
"sntp",
"ntp",
"sntp-client",
"ntp-client",
]
categories = [
"date-and-time",
"no-std",
"embedded",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vpetrigo/sntpc"
[package.metadata.docs.rs]
features = ["sync"]
[badges.maintenance]
status = "actively-developed"
[features]
default = []
log = ["dep:log"]
std = []
sync = ["dep:miniloop"]
utils = [
"std",
"dep:chrono",
"chrono/clock",
]
[lib]
name = "sntpc"
path = "src/lib.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "net"
path = "tests/net.rs"
[[test]]
name = "std_async"
path = "tests/std_async.rs"
[[test]]
name = "std_sync"
path = "tests/std_sync.rs"
[dependencies.cfg-if]
version = "~1"
[dependencies.chrono]
version = "~0.4"
optional = true
default-features = false
[dependencies.defmt]
version = "~1.0"
optional = true
[dependencies.log]
version = "~0.4"
optional = true
[dependencies.miniloop]
version = "~0.4"
optional = true