Cargo Features

[dependencies]
tungstenite = { version = "0.26.0", default-features = false, features = ["handshake", "url", "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

Affects tungstenite::client, tungstenite::handshake

url

Enables url

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
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?
rustls-pki-types rustls-tls-native-roots? rustls-tls-webpki-roots?