Cargo Features

[dependencies]
domain = { version = "0.11.0", default-features = false, features = ["alloc", "std", "bumpalo", "bytes", "heapless", "serde", "smallvec", "tracing", "ring", "openssl", "net", "resolv", "resolv-sync", "tsig", "zonefile", "unstable-new", "unstable-client-cache", "unstable-client-transport", "unstable-crypto", "unstable-crypto-sign", "unstable-server-transport", "unstable-sign", "unstable-stelline", "unstable-validator", "unstable-xfr", "unstable-zonetree", "arbitrary", "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.

alloc std

Support for libraries

Affects rdata::BoxedRecordData

std default bumpalo? net? unstable-sign? unstable-zonetree? zonefile? = alloc

Enables std of octseq and time, std of optional bumpalo and optional bytes and hashbrown ^0.14.2

0.14.2 introduces explicit hashing

Affects message_builder::TreeCompressor, message_builder::HashCompressor, 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

bumpalo = std

Enables bumpalo

Affects dst::copy_to_bump

bytes net? tsig? unstable-crypto? zonefile?

Enables bytes, bytes of octseq

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

heapless

Enables heapless, heapless of octseq

serde unstable-zonetree? zonefile?

Enables serde, serde of octseq

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

smallvec resolv? tsig?

Enables smallvec, smallvec of octseq

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

Enables log and tracing

ring tsig?

Cryptographic backends

Enables ring

openssl

Enables openssl

0.10.70 upgrades to 'bitflags' 2.x

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

Crate features

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

Enables rt of tokio

tokio:

Includes basic task execution capabilities

tsig unstable-stelline? = bytes, ring, smallvec

Affects middleware::tsig

zonefile unstable-stelline? unstable-validator? unstable-zonetree? = bytes, serde, std
unstable-new

Unstable features

Affects domain::new

unstable-client-cache = moka, unstable-client-transport

Affects client::cache

unstable-client-transport resolv? unstable-client-cache? unstable-stelline? unstable-validator? = moka, net, tracing
unstable-crypto unstable-crypto-sign? unstable-validator? = bytes
unstable-crypto-sign unstable-sign? = unstable-crypto

Enables secrecy

Affects openssl::sign, ring::sign

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

Enables clock of chrono

0.4.35 deprecates Duration::seconds()

unstable-sign = std, tracing, unstable-crypto-sign

Enables serde and smallvec, formatting of time

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

Enables test-util of tokio

unstable-validator = moka, unstable-client-transport, unstable-crypto, zonefile
unstable-xfr unstable-zonetree? = net

Affects middleware::xfr

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

Support for testing

Enables arbitrary

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?

Enables rand ^0.8

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-cache? unstable-client-transport? unstable-validator?
proc-macro2 implicit feature

Enables proc-macro2

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

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-subscriber unstable-stelline?

Affects logging::init_logging