Cargo Features

[dependencies]
ng-tungstenite = { version = "0.19.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 ng-tungstenite is added without default-features = false somewhere in the dependency tree.

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

Affects ng-tungstenite::client, ng-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, webpki
rustls-tls-webpki-roots = rustls, webpki, 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

Enables http ^0.2

httparse handshake
sha1 handshake
url handshake
rustls-native-certs rustls-tls-native-roots?

Enables rustls-native-certs ^0.6.0

webpki-roots rustls-tls-webpki-roots?

Enables webpki-roots ^0.23

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

Enables native-tls

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

Enables rustls ^0.21.0

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