Cargo Features
[dependencies]
jarust_interface = { version = "0.7.0", default-features = false, features = ["use-native-tls", "use-rustls"] }
- default = use-native-tls
-
The
use-native-tls
feature is set by default wheneverjarust_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
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?