Cargo Features

[dependencies]
domain = { version = "0.10.3", default-features = false, features = ["std", "bytes", "heapless", "resolv", "resolv-sync", "serde", "sign", "smallvec", "net", "tsig", "validate", "zonefile", "unstable-client-transport", "unstable-server-transport", "unstable-stelline", "unstable-validator", "unstable-xfr", "unstable-zonetree", "proc-macro2", "tokio-rustls", "tokio-stream"] }
default = rand, std

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

std default net? sign? unstable-zonetree? validate? zonefile?

Enables std of optional bytes, octseq, and time

Affects message_builder::TreeCompressor, traits::ToName.to_cow, traits::ToName.to_vec, traits::ToRelativeName.to_cow, traits::ToRelativeName.to_vec, wire::parse_slice, wire::compose_vec, base16::decode_vec, base16::encode_string, base32::encode_string_hex, base64::encode_string

bytes net? tsig? validate? zonefile?

Enables bytes, bytes of octseq

Affects traits::ToName.to_bytes, traits::ToRelativeName.to_bytes

heapless

Enables heapless, heapless of octseq

resolv resolv-sync? = net, smallvec, unstable-client-transport
resolv-sync = resolv

Enables rt of tokio

tokio:

Includes basic task execution capabilities

serde unstable-zonetree? zonefile?

Enables serde, serde of octseq

Affects charstr::DeserializeCharStrSeed, base16::serde, base32::serde, base64::serde

sign = std
smallvec resolv? tsig?

Enables smallvec, smallvec of octseq

net resolv? unstable-client-transport? unstable-server-transport? unstable-xfr? = bytes, futures-util, rand, std, tokio
tsig unstable-stelline? = bytes, ring, smallvec

Affects client::tsig, middleware::tsig

validate unstable-validator? = bytes, ring, std
zonefile unstable-stelline? unstable-validator? unstable-zonetree? = bytes, serde, std
unstable-client-transport resolv? unstable-stelline? unstable-validator? = moka, net, tracing

Unstable features

unstable-server-transport unstable-stelline? = arc-swap, libc, net, siphasher, tracing

Enables clock of chrono

0.4.35 deprecates Duration::seconds()

unstable-stelline = tracing, tracing-subscriber, tsig, unstable-client-transport, unstable-server-transport, zonefile

Enables test-util of tokio

unstable-validator = unstable-client-transport, validate, zonefile

Affects client::validator

unstable-xfr unstable-zonetree? = net

Affects middleware::xfr

unstable-zonetree = futures-util, parking_lot, rustversion, serde, std, tokio, tracing, unstable-xfr, zonefile

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.

rand default net?
arc-swap unstable-server-transport?
chrono unstable-server-transport?
futures-util net? unstable-zonetree?
libc unstable-server-transport?

Enables libc

0.2.79 is the first version that has IP_PMTUDISC_OMIT

parking_lot unstable-zonetree?
moka unstable-client-transport?
proc-macro2 implicit feature

Enables proc-macro2

Force proc-macro2 to at least 1.0.69 for minimal-version build

ring tsig? validate?
rustversion unstable-zonetree?
siphasher unstable-server-transport?

Affects middleware::cookies

tokio net? resolv-sync? unstable-stelline? unstable-zonetree?
tokio-rustls implicit feature

Enables tokio-rustls

tokio-rustls:

Asynchronous TLS/SSL streams for Tokio using Rustls

Affects protocol::TlsConnect

tokio-stream implicit feature

Enables tokio-stream

tokio-stream:

Utilities to work with Stream and tokio

tracing unstable-client-transport? unstable-server-transport? unstable-stelline? unstable-zonetree?
tracing-subscriber unstable-stelline?