Cargo Features
[dependencies]
hyper-proxy2 = { version = "0.1.0", default-features = false, features = ["openssl-tls", "tls", "rustls-base", "rustls", "rustls-webpki"] }
- openssl-tls = openssl, tokio-openssl
-
Affects
stream::TlsStream
… - tls default = hyper-tls, native-tls, tokio-native-tls
-
Affects
stream::TlsStream
… - rustls-base rustls? rustls-webpki? = hyper-rustls, tokio-rustls, webpki
-
note that
rustls-base
is not a valid feature on its own - it will configure rustls without root certificates!Affects
stream::TlsStream
… - default = tls
-
The
tls
feature is set by default wheneverhyper-proxy2
is added without
somewhere in the dependency tree.default-features = false - rustls = rustls-base, rustls-native-certs
-
Enables native-tokio of hyper-rustls ^0.26.0
- rustls-webpki = rustls-base, webpki-roots
-
Enables webpki-tokio of hyper-rustls ^0.26.0
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
- tokio-native-tls tls
- native-tls tls
- openssl openssl-tls?
- tokio-openssl openssl-tls?
- tokio-rustls rustls-base?
-
Enables tokio-rustls ^0.25.0
- hyper-rustls rustls? rustls-base? rustls-webpki?
-
Enables hyper-rustls ^0.26.0
- webpki rustls-base?
- rustls-native-certs rustls?
-
Enables rustls-native-certs ^0.7.0
- webpki-roots rustls-webpki?