[package]
name = "sntpc"
version = "0.9.0"
description = "Library for making SNTP requests"
repository = "https://github.com/vpetrigo/sntpc"
categories = ["date-and-time", "no-std", "embedded", "asynchronous"]
keywords = ["sntp", "ntp", "sntp-client", "ntp-client"]
autoexamples = false

edition.workspace = true
license.workspace = true
authors.workspace = true

exclude = [
    ".*",
    "benches/"
]

[features]
default = []
std = []
sync = ["dep:miniloop"]
utils = ["std", "dep:chrono", "chrono/clock"]
log = ["dep:log"]

[dependencies]
log = { version = "~0.4", optional = true }
chrono = { version = "~0.4", default-features = false, optional = true }
miniloop = { version = "~0.4", optional = true }
defmt = { version = "~1.0", optional = true }
cfg-if = "~1"

[badges]
maintenance = { status = "actively-developed" }

[[bench]]
name = "sync"
harness = false
required-features = ["std", "sync"]

[[bench]]
name = "async"
harness = false
required-features = ["std"]

[package.metadata.docs.rs]
features = ["sync"]
