mirror of
https://github.com/NLnetLabs/domain.git
synced 2026-09-27 04:04:53 +02:00
* Remove interop and ci-test features and set interop tests to ignore. * Fix feature selection. * Clippy-suggested improvements. * Do things for --all-targets in CI.
97 lines
3.1 KiB
TOML
97 lines
3.1 KiB
TOML
[package]
|
|
name = "domain"
|
|
version = "0.9.4-dev"
|
|
rust-version = "1.67.0"
|
|
edition = "2021"
|
|
authors = ["NLnet Labs <dns-team@nlnetlabs.nl>"]
|
|
description = "A DNS library for Rust."
|
|
documentation = "https://docs.rs/domain"
|
|
homepage = "https://github.com/nlnetlabs/domain/"
|
|
repository = "https://github.com/nlnetlabs/domain/"
|
|
readme = "README.md"
|
|
keywords = ["DNS", "domain"]
|
|
license = "BSD-3-Clause"
|
|
|
|
[lib]
|
|
name = "domain"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
octseq = { version = "0.3.2", default-features = false }
|
|
pin-project-lite = "0.2"
|
|
time = { version = "0.3.1", default-features = false }
|
|
|
|
rand = { version = "0.8", optional = true }
|
|
bytes = { version = "1.0", optional = true, default-features = false }
|
|
chrono = { version = "0.4.6", optional = true, default-features = false }
|
|
futures-util = { version = "0.3", optional = true }
|
|
heapless = { version = "0.7", optional = true }
|
|
#openssl = { version = "0.10", optional = true }
|
|
ring = { version = "0.17", optional = true }
|
|
serde = { version = "1.0.130", optional = true, features = ["derive"] }
|
|
siphasher = { version = "1", optional = true }
|
|
smallvec = { version = "1", optional = true }
|
|
tokio = { version = "1.33", optional = true, features = ["io-util", "macros", "net", "time", "sync", "rt-multi-thread" ] }
|
|
tokio-rustls = { version = "0.24", optional = true, features = [] }
|
|
|
|
# XXX Force proc-macro2 to at least 1.0.69 for minimal-version build
|
|
proc-macro2 = "1.0.69"
|
|
|
|
[target.'cfg(macos)'.dependencies]
|
|
# specifying this overrides minimum-version mio's 0.2.69 libc dependency, which allows the build to work
|
|
libc = { version = "0.2.71", default-features = false, optional = true }
|
|
|
|
[features]
|
|
default = ["std", "rand"]
|
|
bytes = ["dep:bytes", "octseq/bytes"]
|
|
heapless = ["dep:heapless", "octseq/heapless"]
|
|
resolv = ["net", "smallvec", "unstable-client-transport"]
|
|
resolv-sync = ["resolv", "tokio/rt"]
|
|
serde = ["dep:serde", "octseq/serde"]
|
|
sign = ["std"]
|
|
smallvec = ["dep:smallvec", "octseq/smallvec"]
|
|
std = ["bytes?/std", "octseq/std", "time/std"]
|
|
net = ["bytes", "futures-util", "rand", "std", "tokio", "tokio-rustls"]
|
|
tsig = ["bytes", "ring", "smallvec"]
|
|
validate = ["std", "ring"]
|
|
zonefile = ["bytes", "std"]
|
|
|
|
# Unstable features
|
|
unstable-client-transport = []
|
|
|
|
[dev-dependencies]
|
|
rustls = { version = "0.21.9" }
|
|
serde_test = "1.0.130"
|
|
serde_yaml = "0.9"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "io-util", "net"] }
|
|
tokio-test = "0.4"
|
|
webpki-roots = { version = "0.25" }
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[[example]]
|
|
name = "readzone"
|
|
required-features = ["zonefile"]
|
|
|
|
[[example]]
|
|
name = "download-rust-lang"
|
|
required-features = ["resolv"]
|
|
|
|
[[example]]
|
|
name = "lookup"
|
|
required-features = ["resolv"]
|
|
|
|
[[example]]
|
|
name = "resolv-sync"
|
|
required-features = ["resolv-sync"]
|
|
|
|
[[example]]
|
|
name = "client"
|
|
required-features = ["std", "rand"]
|
|
|
|
[[example]]
|
|
name = "client-transports"
|
|
required-features = ["net"]
|