Cargo Features
[dependencies]
kvarn-quinn = { version = "0.11.0-alpha1", default-features = false, features = ["lock_tracking", "platform-verifier", "tls-rustls", "ring", "runtime-tokio", "runtime-async-std", "runtime-smol", "log", "futures-io"] }
- default = log, platform-verifier, runtime-tokio, tls-rustls
-
These default features are set whenever
kvarn-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
- platform-verifier default
-
Provides
ClientConfig::with_platform_verifier()
convenience methodEnables platform-verifier of kvarn-quinn-proto
- tls-rustls default = ring, rustls
-
Enables tls-rustls of kvarn-quinn-proto
- ring tls-rustls
-
Enables
Endpoint::client
andEndpoint::server
conveniencesEnables ring of kvarn-quinn-proto
- runtime-tokio default
- runtime-async-std = async-io, async-std
- runtime-smol = async-io, smol
- log default
-
Write logs via the
log
crate when notracing
subscriber existsEnables log of kvarn-quinn-proto, tracing, and kvarn-quinn-udp
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.
- async-io runtime-async-std? runtime-smol?
- async-std runtime-async-std?
- futures-io implicit feature
-
Enables futures-io
Enables futures::io::{AsyncRead, AsyncWrite} support for streams
- rustls tls-rustls
-
Enables rustls ^0.21.10
- smol runtime-smol?