roughtime 0.1.0

A no_std-capable Roughtime secure time-sync client with pluggable crypto backends
Documentation
# 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 = "2024"
rust-version = "1.89"
name = "roughtime"
version = "0.1.0"
authors = ["Hacer"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A no_std-capable Roughtime secure time-sync client with pluggable crypto backends"
homepage = "https://codeberg.org/hacer-bark/roughtime"
documentation = "https://docs.rs/roughtime"
readme = "README.md"
keywords = [
    "roughtime",
    "time",
    "secure-time",
    "no-std",
    "ntp",
]
categories = [
    "date-and-time",
    "cryptography",
    "no-std",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/hacer-bark/roughtime"

[features]
aws-lc-rs = [
    "dep:aws-lc-rs",
    "std",
]
aws-lc-rs-fips = [
    "dep:aws-lc-rs",
    "aws-lc-rs/fips",
    "std",
]
blocking-client = ["std"]
build-time-floor = []
default = [
    "aws-lc-rs",
    "std",
    "tokio-client",
    "dnscrypt",
]
dnscrypt = [
    "std",
    "dep:dnscrypt",
    "tokio-client",
]
os-clock = [
    "std",
    "dep:libc",
]
rustcrypto = [
    "dep:ed25519-dalek",
    "dep:sha2",
]
std = ["dep:getrandom"]
tokio-client = [
    "std",
    "dep:tokio",
]

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

[[example]]
name = "no_std"
path = "examples/no_std.rs"

[[example]]
name = "query_dnscrypt"
path = "examples/query_dnscrypt.rs"

[[example]]
name = "query_tokio"
path = "examples/query_tokio.rs"

[dependencies.aws-lc-rs]
version = "1"
optional = true

[dependencies.base64ct]
version = "1"
features = ["alloc"]
default-features = false

[dependencies.dnscrypt]
version = "0.1"
features = ["tokio"]
optional = true
default-features = false

[dependencies.ed25519-dalek]
version = "3"
features = [
    "alloc",
    "zeroize",
]
optional = true
default-features = false

[dependencies.getrandom]
version = "0.4"
optional = true

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.sha2]
version = "0.11"
optional = true
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
    "time",
    "macros",
    "sync",
]
optional = true
default-features = false

[dependencies.zeroize]
version = "1"
features = ["derive"]
default-features = false

[dev-dependencies.ed25519-dalek]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "net",
    "time",
]

[lints.clippy]
all = "deny"
cargo = "deny"
expect_used = "deny"
nursery = "deny"
panic = "deny"
pedantic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
future_incompatible = "deny"
missing_debug_implementations = "deny"
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused = "deny"
warnings = "deny"