Cargo Features

[dependencies]
hickory-resolver = { version = "0.25.0-alpha.5", default-features = false, features = ["backtrace", "dns-over-rustls", "dns-over-https-rustls", "dns-over-quic", "dns-over-h3", "webpki-roots", "rustls-platform-verifier", "dnssec-ring", "serde", "system-config", "tokio-runtime", "testing"] }
default = system-config, tokio-runtime

These default features are set whenever hickory-resolver is added without default-features = false somewhere in the dependency tree.

backtrace

Enables backtrace, backtrace of hickory-proto

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

Enables rustls and tokio-rustls, dns-over-rustls of hickory-proto

Affects config::ResolverOpts.tls_config

dns-over-https-rustls = dns-over-rustls

This requires some TLS library, currently only rustls is supported

Enables dns-over-https-rustls of hickory-proto

dns-over-quic = dns-over-rustls

Enables quinn, dns-over-quic of hickory-proto

dns-over-h3 = dns-over-rustls

Enables quinn, dns-over-h3 of hickory-proto

webpki-roots

Enables webpki-roots, webpki-roots of hickory-proto

rustls-platform-verifier

Enables rustls-platform-verifier of hickory-proto

dnssec-ring

Enables dnssec-ring of hickory-proto

Affects lookup::DnssecIter, lookup::DnssecLookupRecordIter, resolver::testing.sec_lookup_test, resolver::testing.sec_lookup_fails_test

serde

Enables serde, serde of hickory-proto

system-config default

Enables ipconfig and resolv-conf

Affects resolver::testing.system_lookup_test, resolver::testing.hosts_lookup_test

tokio-runtime default dns-over-rustls?

Enables tokio-runtime of hickory-proto and rt of tokio

tokio:

Includes basic task execution capabilities

Affects hickory-resolver::TokioAsyncResolver, connection_provider::TokioConnectionProvider, resolver::TokioResolver

testing

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.

tokio tokio-runtime