Cargo Features
[dependencies]
tokio-tungstenite = { version = "0.21.0", default-features = false, features = ["connect", "handshake", "native-tls", "native-tls-vendored", "rustls-tls-native-roots", "rustls-tls-webpki-roots", "stream"] }
- default = connect, handshake
-
These default features are set whenever
tokio-tungstenite
is added without
somewhere in the dependency tree.default-features = false - connect default = handshake, stream
- handshake default __rustls-tls? connect native-tls?
-
Enables handshake of tungstenite
Affects
tokio-tungstenite::client_async
,tokio-tungstenite::client_async_with_config
,tokio-tungstenite::accept_async
,tokio-tungstenite::accept_async_with_config
,tokio-tungstenite::accept_hdr_async
,tokio-tungstenite::accept_hdr_async_with_config
… - native-tls native-tls-vendored? = handshake, native-tls-crate, stream, tokio-native-tls
-
Enables native-tls of tungstenite
Affects
connect::connect_async_tls_with_config
,tls::client_async_tls
… - native-tls-vendored = native-tls
-
Enables vendored of native-tls, native-tls-vendored of tungstenite
- rustls-tls-native-roots = __rustls-tls, rustls-native-certs
- rustls-tls-webpki-roots = __rustls-tls, webpki-roots
- stream __rustls-tls? connect native-tls?
- __rustls-tls rustls-tls-native-roots? rustls-tls-webpki-roots? = handshake, rustls, rustls-pki-types, stream, tokio-rustls
-
Enables __rustls-tls of tungstenite
Affects
connect::connect_async_tls_with_config
,tls::client_async_tls
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.
- native-tls-crate native-tls?
-
Enables native-tls
- rustls __rustls-tls?
-
With default features
- rustls-native-certs rustls-tls-native-roots?
- rustls-pki-types __rustls-tls?
- tokio-native-tls native-tls?
- tokio-rustls __rustls-tls?
-
With default features
- webpki-roots rustls-tls-webpki-roots?