Cargo Features

[dependencies]
s2n-quic-core = { version = "0.51.0", default-features = false, features = ["std", "alloc", "generator", "checked-counters", "branch-tracing", "event-tracing", "state-tracing", "testing", "unstable-congestion-controller", "unstable-limits", "usdt"] }
default = alloc, std

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

std default testing? = alloc, once_cell

Affects interest::Debugger

alloc default std = atomic-waker, bytes, crossbeam-utils

Enables alloc of s2n-codec

Affects ack::ranges, tls::TlsSession.peer_cert_chain_der, tls::Context, tls::Endpoint, tls::Session, datagram::default, havoc::Strategy.hold, s2n-quic-core::buffer, s2n-quic-core::dc, s2n-quic-core::interval_set, number::map, sent_packets::SentPackets, stream::ops, sync::spsc, sync::worker, parameters::TransportParameter.append_to_buffer

generator testing? = bolero-generator
checked-counters testing?
branch-tracing = tracing
event-tracing = tracing

Affects generated::tracing

probe-tracing state-tracing = tracing
testing = checked-counters, futures-test, generator, insta, std

Enables testing of s2n-codec

unstable-congestion-controller

This feature enables support for third party congestion controller implementations

unstable-limits

This feature enables the use of unstable connection limits

usdt

Enables probe

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.

atomic-waker alloc

Affects sync::atomic_waker

bolero-generator generator?
bytes alloc
crossbeam-utils alloc
insta testing?

Enables insta

used for event snapshot testing - needs an internal API so we require a minimum version

tracing branch-tracing? event-tracing? probe-tracing? state-tracing?

Affects timer::Debugger

futures-test testing?

Enables futures-test

For testing Waker interactions

once_cell std