# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2018"
name = "sntpc"
version = "0.3.8"
authors = ["Vladimir Petrigo <vladimir.petrigo@gmail.com>"]
build = false
exclude = [
    ".github/*",
    "CONTRIBUTING.md",
    ".*",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for making SNTP requests"
homepage = "https://github.com/vpetrigo/sntpc"
documentation = "https://docs.rs/sntpc"
readme = "README.md"
keywords = [
    "sntp",
    "ntp",
    "sntp-client",
    "ntp-client",
]
categories = [
    "date-and-time",
    "no-std",
    "embedded",
    "asynchronous",
]
license = "BSD-3-Clause"
repository = "https://github.com/vpetrigo/sntpc"

[lib]
name = "sntpc"
path = "src/lib.rs"

[[example]]
name = "simple_request"
path = "examples/simple_request.rs"
required-features = ["std"]

[[example]]
name = "smoltcp_request"
path = "examples/smoltcp_request.rs"
required-features = ["std"]

[[example]]
name = "timesync"
path = "examples/timesync.rs"
required-features = ["utils"]

[[example]]
name = "tokio"
path = "examples/tokio.rs"
required-features = ["async_tokio"]

[dependencies.async-trait]
version = "0.1"
optional = true

[dependencies.chrono]
version = "~0.4"
optional = true
default-features = false

[dependencies.log]
version = "~0.4"
optional = true

[dependencies.no-std-net]
version = "~0.6"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dev-dependencies.clap]
version = "2.33"
default-features = false

[dev-dependencies.simple_logger]
version = "~1.13"

[dev-dependencies.smoltcp]
version = "~0.9"
features = [
    "phy-tuntap_interface",
    "socket-udp",
    "proto-ipv4",
]
default-features = false

[features]
async = []
async_tokio = [
    "std",
    "async",
    "tokio",
    "async-trait",
]
default = ["std"]
std = []
utils = [
    "std",
    "chrono/clock",
]

[badges.maintenance]
status = "actively-developed"
