Cargo Features
[dependencies]
hickory-proto = { version = "0.26.0-alpha.1", default-features = false, features = ["std", "tls-aws-lc-rs", "https-aws-lc-rs", "quic-aws-lc-rs", "h3-aws-lc-rs", "tls-ring", "https-ring", "quic-ring", "h3-ring", "rustls-platform-verifier", "dnssec-aws-lc-rs", "dnssec-ring", "text-parsing", "tokio", "serde", "testing", "mdns", "no-std-rand", "wasm-bindgen", "backtrace", "webpki-roots"] }
- default = std, tokio
-
These default features are set whenever
hickory-protois added withoutsomewhere in the dependency tree.default-features = false - std default __dnssec? __h3? __https? __quic? __tls? backtrace? mdns? rustls-platform-verifier? serde? testing? text-parsing? tokio
-
Enables optional ring, std and thread_rng of rand, env-filter, fmt and std of tracing-subscriber, std of url, std of data-encoding, futures-channel, futures-io, futures-util, and ipnet and std of thiserror and tracing
thiserror:
Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.
#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}
Without std, this would need to be written #[error("... {}", path.display())].Affects
hickory-proto::runtime,hickory-proto::tcp,hickory-proto::udp,dns_request::DnsRequestOptions.case_randomization,dns_response::DnsResponseStream,xfer::dns_multiplexer,xfer::DnsClientStream,xfer::StreamReceiver,xfer::BufDnsStreamHandle,xfer::DnsRequestSender,xfer::BufDnsRequestStreamHandle,xfer::OneshotDnsRequest,xfer::DnsResponseReceiver,update_message::create,update_message::append,update_message::compare_and_swap,update_message::delete_by_rdata,update_message::delete_rrset,update_message::delete_all,update_message::zone_transfer… - tls-aws-lc-rs https-aws-lc-rs? quic-aws-lc-rs? = __tls
-
Enables aws-lc-rs of tokio-rustls
tokio-rustls:
Alias because Cargo features commonly use
-Affects
rustls::default_provider… - https-aws-lc-rs = __https, tls-aws-lc-rs
- quic-aws-lc-rs h3-aws-lc-rs? = __quic, tls-aws-lc-rs
-
Enables rustls-aws-lc-rs of quinn
quinn:
Enable rustls with the
aws-lc-rscrypto provider - h3-aws-lc-rs = __h3, quic-aws-lc-rs
- tls-ring https-ring? quic-ring? = __tls
-
Enables ring of tokio-rustls
Affects
rustls::default_provider… - https-ring = __https, tls-ring
- quic-ring h3-ring? = __quic, tls-ring
-
Enables rustls-ring of quinn
quinn:
Enable rustls with the
ringcrypto provider - h3-ring = __h3, quic-ring
- rustls-platform-verifier = std
-
Enables rustls-platform-verifier ^0.5
- dnssec-aws-lc-rs = __dnssec
-
Enables aws-lc-sys and ring-io of aws-lc-rs
Affects
hickory-proto::dnssec… - dnssec-ring = __dnssec
-
Enables ring
Affects
hickory-proto::dnssec… - text-parsing = std
-
Affects
serialize::txt… - tokio default __tls? = std
-
Enables net, rt, rt-multi-thread and time of tokio
Affects
runtime::iocompat,hickory-proto::quic… - serde = std
-
Enables serde and serde of url
url:
Enables serialization and deserialization via serde.
- testing = std
- __tls tls-aws-lc-rs? tls-ring? = std, tokio
-
Enables bytes, rustls, and tokio-rustls
Affects
hickory-proto::rustls… - __dnssec dnssec-aws-lc-rs? dnssec-ring? = std
-
Enables bitflags, rustls-pki-types, and time
Affects
resource::RecordParts.proof,rr_set::RecordsAndRrsigsIter,txt::trust_anchor… - __h3 h3-aws-lc-rs? h3-ring? = std
-
Enables h3 ^0.0.7, h3-quinn ^0.0.9, and http
Affects
hickory-proto::h3,hickory-proto::http… - __https https-aws-lc-rs? https-ring? = std
-
Affects
hickory-proto::h2,hickory-proto::http… - __quic quic-aws-lc-rs? quic-ring? = std
-
Enables bytes, pin-project-lite, and quinn
Affects
runtime::QuicSocketBinder,hickory-proto::quic… - mdns = std
-
enables experimental the mDNS (multicast) feature
Enables all of socket2 ^0.5
Affects
hickory-proto::multicast,query::Query.mdns_unicast_response,resource::RecordParts.mdns_cache_flush… - no-std-rand
-
enables a custom random function backed by a no_std compatible mutex
Enables critical-section and once_cell
Affects
update_message::create,update_message::append,update_message::compare_and_swap,update_message::delete_by_rdata,update_message::delete_rrset,update_message::delete_all,update_message::zone_transfer,dns_handle::DnsHandle.lookup… - wasm-bindgen
-
Enables js-sys and wasm-bindgen
- backtrace = std
-
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.
- futures-io std
- socket2 mdns?
-
Enables socket2 ^0.5
- webpki-roots implicit feature
-
Enables webpki-roots ^0.26
webpki-roots:
Mozilla's CA root certificates for use with webpki