Cargo Features

[dependencies]
domain = { version = "0.9.3", default-features = false, features = ["std", "bytes", "heapless", "interop", "resolv", "resolv-sync", "serde", "sign", "smallvec", "tsig", "validate", "zonefile", "ci-test", "chrono", "siphasher"] }
default = rand, std

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

std default ci-test? resolv? sign? validate? zonefile?

Enables std of optional bytes, octseq ^0.3.2, and time

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

bytes interop? resolv? tsig? zonefile?

Enables bytes, bytes of octseq ^0.3.2

Affects traits::ToDname.to_bytes, traits::ToRelativeDname.to_bytes

heapless

Enables heapless ^0.7, heapless of octseq ^0.3.2

interop = bytes, ring
resolv ci-test? resolv-sync? = bytes, futures-util, libc, rand, smallvec, std, tokio
resolv-sync ci-test? = resolv

Enables rt of tokio

tokio:

Includes basic task execution capabilities

serde ci-test?

Enables serde, serde of octseq ^0.3.2

Affects base16::serde, base32::serde, base64::serde

sign ci-test? = std
smallvec resolv? tsig?

Enables smallvec, smallvec of octseq ^0.3.2

tsig ci-test? = bytes, ring, smallvec
validate ci-test? = ring, std
zonefile ci-test? = bytes, std
ci-test = resolv, resolv-sync, serde, sign, std, tsig, validate, zonefile

This feature should include all features that the CI should include for a test run. Which is everything except interop.

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 resolv?
chrono implicit feature

Enables chrono

chrono:

Date and time library for Rust

futures-util resolv?
ring interop? tsig? validate?
siphasher implicit feature

Enables siphasher

siphasher:

SipHash-2-4, SipHash-1-3 and 128-bit variants in pure Rust

tokio resolv? resolv-sync?
libc mac resolv?