395 lines
7.0 KiB
TOML
395 lines
7.0 KiB
TOML
# 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 = "2021"
|
|
rust-version = "1.88"
|
|
name = "hickory-resolver"
|
|
version = "0.26.3"
|
|
authors = ["The contributors to Hickory DNS"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = """
|
|
hickory-resolver is a safe and secure DNS stub resolver library intended to be a high-level library
|
|
for DNS record resolution.
|
|
"""
|
|
homepage = "https://hickory-dns.org/"
|
|
documentation = "https://docs.rs/hickory-resolver"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"dns",
|
|
"dnssec",
|
|
]
|
|
categories = ["network-programming"]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/hickory-dns/hickory-dns"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
default-target = "x86_64-unknown-linux-gnu"
|
|
targets = [
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
]
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
|
|
[package.metadata.cargo-all-features]
|
|
skip_optional_dependencies = true
|
|
max_combination_size = 2
|
|
denylist = [
|
|
"__tls",
|
|
"__https",
|
|
"__quic",
|
|
"__h3",
|
|
"__dnssec",
|
|
]
|
|
|
|
[features]
|
|
__dnssec = []
|
|
__h3 = ["__quic"]
|
|
__https = ["__tls"]
|
|
__quic = [
|
|
"dep:quinn",
|
|
"__tls",
|
|
]
|
|
__tls = [
|
|
"dep:rustls",
|
|
"dep:tokio-rustls",
|
|
"tokio",
|
|
]
|
|
default = [
|
|
"system-config",
|
|
"tokio",
|
|
]
|
|
dnssec-aws-lc-rs = [
|
|
"hickory-proto/dnssec-aws-lc-rs",
|
|
"hickory-net/dnssec-aws-lc-rs",
|
|
"__dnssec",
|
|
]
|
|
dnssec-ring = [
|
|
"hickory-proto/dnssec-ring",
|
|
"hickory-net/dnssec-ring",
|
|
"__dnssec",
|
|
]
|
|
h3-aws-lc-rs = [
|
|
"hickory-net/h3-aws-lc-rs",
|
|
"__h3",
|
|
]
|
|
h3-ring = [
|
|
"hickory-net/h3-ring",
|
|
"__h3",
|
|
]
|
|
https-aws-lc-rs = [
|
|
"hickory-net/https-aws-lc-rs",
|
|
"__https",
|
|
]
|
|
https-ring = [
|
|
"hickory-net/https-ring",
|
|
"__https",
|
|
]
|
|
metrics = ["dep:metrics"]
|
|
quic-aws-lc-rs = [
|
|
"hickory-net/quic-aws-lc-rs",
|
|
"__quic",
|
|
"quinn/rustls-aws-lc-rs",
|
|
]
|
|
quic-ring = [
|
|
"hickory-net/quic-ring",
|
|
"__quic",
|
|
"quinn/rustls-ring",
|
|
]
|
|
recursor = [
|
|
"dep:async-recursion",
|
|
"dep:lru-cache",
|
|
]
|
|
rustls-platform-verifier = ["hickory-net/rustls-platform-verifier"]
|
|
serde = [
|
|
"dep:serde",
|
|
"hickory-proto/serde",
|
|
]
|
|
system-config = [
|
|
"dep:ipconfig",
|
|
"dep:resolv-conf",
|
|
"dep:jni",
|
|
"dep:ndk-context",
|
|
"dep:system-configuration",
|
|
]
|
|
tls-aws-lc-rs = [
|
|
"hickory-net/tls-aws-lc-rs",
|
|
"__tls",
|
|
]
|
|
tls-ring = [
|
|
"hickory-net/tls-ring",
|
|
"__tls",
|
|
]
|
|
tokio = [
|
|
"dep:tokio",
|
|
"tokio/rt",
|
|
"hickory-net/tokio",
|
|
]
|
|
toml = ["dep:toml"]
|
|
webpki-roots = [
|
|
"dep:webpki-roots",
|
|
"hickory-net/webpki-roots",
|
|
]
|
|
|
|
[lib]
|
|
name = "hickory_resolver"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "custom_provider"
|
|
path = "examples/custom_provider.rs"
|
|
required-features = ["tokio"]
|
|
|
|
[[example]]
|
|
name = "flush_cache"
|
|
path = "examples/flush_cache.rs"
|
|
required-features = [
|
|
"tokio",
|
|
"system-config",
|
|
]
|
|
|
|
[[example]]
|
|
name = "global_resolver"
|
|
path = "examples/global_resolver.rs"
|
|
required-features = [
|
|
"tokio",
|
|
"system-config",
|
|
]
|
|
|
|
[[example]]
|
|
name = "multithreaded_runtime"
|
|
path = "examples/multithreaded_runtime.rs"
|
|
required-features = [
|
|
"tokio",
|
|
"system-config",
|
|
]
|
|
|
|
[[test]]
|
|
name = "tests"
|
|
path = "tests/tests.rs"
|
|
|
|
[[bench]]
|
|
name = "recursor"
|
|
path = "benches/recursor.rs"
|
|
harness = false
|
|
required-features = [
|
|
"recursor",
|
|
"tokio",
|
|
]
|
|
|
|
[dependencies.async-recursion]
|
|
version = "1.0.0"
|
|
optional = true
|
|
|
|
[dependencies.cfg-if]
|
|
version = "1"
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3.5"
|
|
features = ["std"]
|
|
default-features = false
|
|
|
|
[dependencies.hickory-net]
|
|
version = "0.26.3"
|
|
default-features = false
|
|
|
|
[dependencies.hickory-proto]
|
|
version = "0.26.3"
|
|
features = [
|
|
"std",
|
|
"access-control",
|
|
]
|
|
default-features = false
|
|
|
|
[dependencies.ipnet]
|
|
version = "2.11.0"
|
|
features = ["serde"]
|
|
default-features = false
|
|
|
|
[dependencies.lru-cache]
|
|
version = "0.1.2"
|
|
optional = true
|
|
|
|
[dependencies.metrics]
|
|
version = "0.24.1"
|
|
optional = true
|
|
|
|
[dependencies.moka]
|
|
version = "0.12"
|
|
features = ["sync"]
|
|
|
|
[dependencies.once_cell]
|
|
version = "1.20.0"
|
|
features = ["critical-section"]
|
|
default-features = false
|
|
|
|
[dependencies.parking_lot]
|
|
version = "0.12"
|
|
|
|
[dependencies.quinn]
|
|
version = "0.11.2"
|
|
features = [
|
|
"log",
|
|
"runtime-tokio",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.rand]
|
|
version = "0.10.0"
|
|
features = ["alloc"]
|
|
default-features = false
|
|
|
|
[dependencies.resolv-conf]
|
|
version = "0.7.6"
|
|
features = ["system"]
|
|
optional = true
|
|
|
|
[dependencies.rustls]
|
|
version = "0.23.23"
|
|
features = [
|
|
"logging",
|
|
"std",
|
|
"tls12",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
features = [
|
|
"derive",
|
|
"rc",
|
|
]
|
|
optional = true
|
|
|
|
[dependencies.smallvec]
|
|
version = "1.6"
|
|
|
|
[dependencies.thiserror]
|
|
version = "2"
|
|
default-features = false
|
|
|
|
[dependencies.tokio]
|
|
version = "1.36"
|
|
optional = true
|
|
|
|
[dependencies.tokio-rustls]
|
|
version = "0.26"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.toml]
|
|
version = "1.0.1"
|
|
optional = true
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1.30"
|
|
default-features = false
|
|
|
|
[dependencies.webpki-roots]
|
|
version = "1"
|
|
optional = true
|
|
|
|
[dev-dependencies.async-trait]
|
|
version = "0.1.43"
|
|
|
|
[dev-dependencies.criterion]
|
|
version = "0.8.2"
|
|
features = ["async_tokio"]
|
|
|
|
[dev-dependencies.futures-executor]
|
|
version = "0.3.5"
|
|
features = ["std"]
|
|
default-features = false
|
|
|
|
[dev-dependencies.hickory-proto]
|
|
version = "0.26.3"
|
|
features = ["std"]
|
|
default-features = false
|
|
|
|
[dev-dependencies.metrics-util]
|
|
version = "0.20.0"
|
|
features = ["debugging"]
|
|
default-features = false
|
|
|
|
[dev-dependencies.serde_json]
|
|
version = "1"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.36"
|
|
features = [
|
|
"macros",
|
|
"test-util",
|
|
]
|
|
|
|
[dev-dependencies.toml]
|
|
version = "1.0.1"
|
|
|
|
[dev-dependencies.tracing-subscriber]
|
|
version = "0.3.10"
|
|
features = [
|
|
"env-filter",
|
|
"fmt",
|
|
"std",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.jni]
|
|
version = "0.22.1"
|
|
optional = true
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.ndk-context]
|
|
version = "0.1.1"
|
|
optional = true
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies.system-configuration]
|
|
version = "0.8"
|
|
optional = true
|
|
|
|
[target."cfg(windows)".dependencies.ipconfig]
|
|
version = "0.3.0"
|
|
optional = true
|
|
|
|
[lints.clippy]
|
|
bool_to_int_with_if = "allow"
|
|
default_trait_access = "warn"
|
|
manual_let_else = "warn"
|
|
or_fun_call = "warn"
|
|
single_component_path_imports = "allow"
|
|
unimplemented = "warn"
|
|
upper_case_acronyms = "allow"
|
|
use_self = "warn"
|
|
|
|
[lints.rust]
|
|
non_snake_case = "warn"
|
|
non_upper_case_globals = "warn"
|
|
rust_2018_idioms = "warn"
|
|
unnameable_types = "warn"
|
|
unreachable_pub = "warn"
|
|
unused_extern_crates = "warn"
|
|
unused_import_braces = "warn"
|
|
unused_qualifications = "warn"
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
priority = 0
|
|
check-cfg = ["cfg(nightly)"]
|