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 default-features = false somewhere in the dependency tree.

connect default = handshake, stream

Enables net of tokio

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.

rustls __rustls-tls?
rustls-native-certs rustls-tls-native-roots?
rustls-pki-types __rustls-tls?
tokio-native-tls native-tls?
tokio-rustls __rustls-tls?
webpki-roots rustls-tls-webpki-roots?
native-tls-crate native-tls? native-tls-vendored?

Enables native-tls