Cargo Features

[dependencies]
trust-dns-resolver = { version = "0.23.2", default-features = false, features = ["dns-over-native-tls", "dns-over-openssl", "dns-over-rustls", "dns-over-tls", "dns-over-https-rustls", "dns-over-https", "dns-over-quic", "dnssec-openssl", "dnssec-ring", "dnssec", "serde-config", "system-config", "tokio-runtime", "testing"] }
default = system-config, tokio-runtime

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

dns-over-native-tls = dns-over-tls, tokio-native-tls

Enables dns-over-native-tls of trust-dns-proto

dns-over-openssl = dns-over-tls, tokio-openssl

DNS over TLS with OpenSSL currently needs a good way to set default CAs, use rustls or native-tls

Enables dns-over-openssl of trust-dns-proto

dns-over-rustls dns-over-https-rustls? dns-over-quic? = dns-over-tls, rustls, tokio-rustls, webpki-roots

Enables dns-over-rustls of trust-dns-proto

Affects config::TlsClientConfig, config::NameServerConfig.tls_config

dns-over-tls dns-over-native-tls? dns-over-openssl? dns-over-rustls? = tokio-runtime
dns-over-https-rustls = dns-over-https, dns-over-rustls

This requires some TLS library, currently only rustls is supported

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

dns-over-https dns-over-https-rustls?

Enables dns-over-https of trust-dns-proto

dns-over-quic = dns-over-rustls

Enables quic of rustls ^0.21.0, dns-over-quic of trust-dns-proto

dnssec-openssl = dnssec

Enables dnssec-openssl of trust-dns-proto

dnssec-ring = dnssec

Enables dnssec-ring of trust-dns-proto

dnssec dnssec-openssl? dnssec-ring?

Affects async_resolver::testing.sec_lookup_test, async_resolver::testing.sec_lookup_fails_test

serde-config = serde

Enables serde-config of trust-dns-proto

system-config default = ipconfig, resolv-conf

Affects async_resolver::testing.system_lookup_test, async_resolver::testing.hosts_lookup_test

tokio-runtime default dns-over-tls?

Enables tokio-runtime of trust-dns-proto and rt of tokio

tokio:

Includes basic task execution capabilities

Affects async_resolver::TokioAsyncResolver, trust-dns-resolver::ResolverFuture, connection_provider::tokio_runtime

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.

resolv-conf system-config
rustls dns-over-quic? dns-over-rustls?

Enables rustls ^0.21.0

serde serde-config?
tokio tokio-runtime
tokio-native-tls dns-over-native-tls?
tokio-openssl dns-over-openssl?
tokio-rustls dns-over-rustls?

Enables tokio-rustls ^0.24.0

webpki-roots dns-over-rustls?

Enables webpki-roots ^0.25.0

ipconfig win system-config