Cargo Features
[dependencies]
tokio-tungstenite = { version = "0.24.0", default-features = false, features = ["connect", "handshake", "native-tls", "native-tls-vendored", "rustls-tls-native-roots", "rustls-tls-webpki-roots", "stream", "url"] }
- 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?
- url
-
Enables url of tungstenite
- __rustls-tls rustls-tls-native-roots? rustls-tls-webpki-roots? = handshake, rustls, rustls-pki-types, stream, tokio-rustls
-
Enables rustls and rustls-pki-types 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. These features may have been created by mistake, and this functionality may be removed in the future.