Cargo Features
[dependencies]
hyper-socks2 = { version = "0.9.1", default-features = false, features = ["tls", "rustls"] }
- default = tls
-
The
tls
feature is set by default wheneverhyper-socks2
is added without
somewhere in the dependency tree.default-features = false - tls default = hyper-tls
- rustls = hyper-rustls, rustls-native-certs, rusttls
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.
- hyper-tls tls
-
Enables hyper-tls
tls
feature - hyper-rustls rustls?
-
Enables hyper-rustls ^0.26
rustls
feature - rusttls rustls?
-
Enables rustls ^0.22
- rustls-native-certs rustls?
-
Enables rustls-native-certs ^0.7