Cargo Features
[dependencies]
quinn = { version = "0.10.2", default-features = false, features = ["lock_tracking", "native-certs", "tls-rustls", "ring", "runtime-tokio", "runtime-async-std", "log", "futures-io"] }
- default = log, native-certs, runtime-tokio, tls-rustls
-
These default features are set whenever
quinn
is added without
somewhere in the dependency tree.default-features = false - lock_tracking
-
Records how long locks are held, and warns if they are held >= 1ms
- native-certs default
-
Provides
ClientConfig::with_native_roots()
convenience methodEnables native-certs of quinn-proto
- tls-rustls default = ring, rustls
-
Enables tls-rustls of quinn-proto
- ring tls-rustls
-
Enables
Endpoint::client
andEndpoint::server
conveniencesEnables ring of quinn-proto
- runtime-tokio default
- runtime-async-std = async-io, async-std
- log default
-
Write logs via the
log
crate when notracing
subscriber existsEnables log of quinn-proto, tracing, and quinn-udp
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
- async-io runtime-async-std?
-
Enables async-io ^1.6
- async-std runtime-async-std?
-
With default features
- futures-io implicit feature
- rustls tls-rustls
-
Enables quic of rustls ^0.21.0