Cargo Features

[dependencies]
hickory-proto = { version = "0.25.0-alpha.5", default-features = false, features = ["dns-over-tls", "dns-over-rustls", "dns-over-https-rustls", "dns-over-quic", "dns-over-h3", "rustls-platform-verifier", "dnssec-ring", "text-parsing", "tokio-runtime", "serde", "testing", "mdns", "wasm-bindgen", "backtrace", "webpki-roots"] }
default = tokio-runtime

The tokio-runtime feature is set by default whenever hickory-proto is added without default-features = false somewhere in the dependency tree.

dns-over-tls dns-over-rustls?
dns-over-rustls dns-over-https-rustls? dns-over-quic? = dns-over-tls, tokio-runtime

Enables tokio-rustls, ring of rustls

Affects hickory-proto::rustls

dns-over-https-rustls = dns-over-rustls, tokio-runtime

Enables bytes, h2, and http

Affects hickory-proto::h2, hickory-proto::http

dns-over-quic dns-over-h3? = dns-over-rustls, tokio-runtime

Enables bytes, pin-project-lite, and quinn

Affects hickory-proto::quic, runtime::QuicSocketBinder

dns-over-h3 = dns-over-quic

Enables h3, h3-quinn, http, and quinn

Affects hickory-proto::h3, hickory-proto::http, runtime::QuicSocketBinder

rustls-platform-verifier

Enables rustls-platform-verifier

dnssec-ring

Enables bitflags, ring, rustls-pki-types, and time

Affects dnssec::ring, hickory-proto::dnssec, resource::RecordParts.proof, rr_set::RecordsAndRrsigsIter, txt::trust_anchor

text-parsing

Affects serialize::txt

tokio-runtime default dns-over-https-rustls? dns-over-quic? dns-over-rustls?

Enables net, rt, rt-multi-thread and time of tokio

Affects runtime::iocompat, hickory-proto::quic

serde

Enables serde, serde of url

testing
mdns

enables experimental the mDNS (multicast) feature

Enables all of socket2

Affects hickory-proto::multicast, query::QueryParts.mdns_unicast_response, resource::RecordParts.mdns_cache_flush

wasm-bindgen

Enables js-sys and wasm-bindgen

backtrace

Enables backtrace

Affects error::ENABLE_BACKTRACE, error::ProtoError.backtrack

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rustls dns-over-rustls?
socket2 mdns?
tokio tokio-runtime
webpki-roots implicit feature

Enables webpki-roots

webpki-roots:

Mozilla's CA root certificates for use with webpki