Cargo Features

trust-dns-proto = { version = "0.23.2", default-features = false, features = ["dns-over-tls", "dns-over-rustls", "dns-over-native-tls", "dns-over-openssl", "dns-over-https-rustls", "dns-over-https", "dns-over-quic", "dnssec-openssl", "dnssec-ring", "dnssec", "text-parsing", "tokio-runtime", "serde-config", "testing", "mdns", "wasm-bindgen", "backtrace"] }
default = tokio-runtime

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

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

Affects trust-dns-proto::rustls

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

Affects trust-dns-proto::native_tls

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

Affects trust-dns-proto::openssl

dns-over-https-rustls = dns-over-https
dns-over-https dns-over-https-rustls? = bytes, dns-over-rustls, h2, http, tokio-runtime, webpki-roots

Affects trust-dns-proto::https

dns-over-quic = bytes, dns-over-rustls, quinn, tokio-runtime, webpki-roots

Enables quic of rustls ^0.21.0

Affects trust-dns-proto::quic

dnssec-openssl = dnssec, openssl
dnssec-ring = dnssec, ring
dnssec dnssec-openssl? dnssec-ring?

Affects signer::SigSigner, rr::dnssec, rr_set::RecordsAndRrsigsIter, xfer::dnssec_dns_handle


Affects serialize::txt

tokio-runtime default dns-over-https? dns-over-native-tls? dns-over-openssl? dns-over-quic? dns-over-rustls?

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

Affects trust-dns-proto::iocompat, tcp::tokio, trust-dns-proto::quic

serde-config = serde

Enables serde of url


enables experimental the mDNS (multicast) feature

Enables all of socket2

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

wasm-bindgen = js-sys, wasm-bindgen-crate

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.

bytes dns-over-https? dns-over-quic?
h2 dns-over-https?

Enables h2 ^0.3.0

http dns-over-https?

Enables http ^0.2

js-sys wasm-bindgen?
native-tls dns-over-native-tls?
openssl dns-over-openssl? dnssec-openssl?

Affects public_key::Ec, public_key::dnssec_ecdsa_signature_to_der, public_key::Rsa

quinn dns-over-quic?

Enables quinn ^0.10

ring dnssec-ring?

Enables ring ^0.16

Affects public_key::Ec, public_key::Ed25519, public_key::Rsa

rustls dns-over-quic? dns-over-rustls?

Enables rustls ^0.21.0

rustls-pemfile dns-over-rustls?

Enables rustls-pemfile ^1.0.0

serde serde-config?
socket2 mdns?
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

wasm-bindgen-crate wasm-bindgen?

Enables wasm-bindgen

webpki dns-over-rustls?

Enables rustls-webpki ^0.101.0

webpki-roots dns-over-https? dns-over-quic?

Enables webpki-roots ^0.25.0