Cargo Features
[dependencies]
tokio-tungstenite-typed = { version = "0.1.1", default-features = false, features = ["json", "msgpack", "native-tls", "rustls-tls-native-roots", "rustls-tls-webpki-roots"] }
- default = json
-
The
json
feature is set by default whenevertokio-tungstenite-typed
is added without
somewhere in the dependency tree.default-features = false - json default = serde_json
-
Affects
tokio-tungstenite-typed::TextJsonCodec
,tokio-tungstenite-typed::BinaryJsonCodec
… - msgpack = rmp-serde
-
Affects
tokio-tungstenite-typed::MsgPackCodec
… - native-tls
-
Enables native-tls of tokio-tungstenite ^0.21
- rustls-tls-native-roots
-
Enables rustls-tls-native-roots of tokio-tungstenite ^0.21
- rustls-tls-webpki-roots
-
Enables rustls-tls-webpki-roots of tokio-tungstenite ^0.21
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.