Cargo Features
[dependencies]
jarust_interface = { version = "0.8.1", default-features = false, features = ["use-native-tls", "use-rustls", "tokio-rt"] }
- default = tokio-rt, use-native-tls
-
These default features are set whenever
jarust_interface
is added without
somewhere in the dependency tree.default-features = false - use-native-tls default
-
Enables native-tls of tokio-tungstenite
- use-rustls = rustls, rustls-native-certs
-
Enables handshake, rustls, rustls-pki-types, stream and tokio-rustls of tokio-tungstenite
- tokio-rt default
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 not wasm use-rustls?
- rustls-native-certs not wasm use-rustls?