Cargo Features

tungstenite = { version = "0.21.0", default-features = false, features = ["handshake", "native-tls", "native-tls-vendored", "rustls-tls-native-roots", "rustls-tls-webpki-roots"] }
default = handshake

The handshake feature is set by default whenever tungstenite is added without default-features = false somewhere in the dependency tree.

handshake default = data-encoding, http, httparse, sha1, url

Affects tungstenite::client, tungstenite::handshake

native-tls native-tls-vendored? = native-tls-crate
native-tls-vendored = native-tls

Enables vendored of native-tls

rustls-tls-native-roots = rustls, rustls-native-certs, rustls-pki-types
rustls-tls-webpki-roots = rustls, rustls-pki-types, webpki-roots

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.

data-encoding handshake
http handshake
httparse handshake
sha1 handshake
url handshake
rustls-native-certs rustls-tls-native-roots?
webpki-roots rustls-tls-webpki-roots?
native-tls-crate native-tls? native-tls-vendored?

Enables native-tls

rustls rustls-tls-native-roots? rustls-tls-webpki-roots?

Enables rustls ^0.22.0

rustls-pki-types rustls-tls-native-roots? rustls-tls-webpki-roots?