Cargo Features
[dependencies]
salvo-rustls = { version = "0.0.3", default-features = false, features = ["http1", "http2", "webpki-tokio", "native-tokio", "tokio-runtime", "tls12", "logging"] }
- default = http1, logging, native-tokio, tls12
-
These default features are set whenever
salvo-rustls
is added without
somewhere in the dependency tree.default-features = false - http1 default
-
Enables http1 of hyper =1.0.0-rc.3
hyper:
HTTP versions
- http2
-
Enables http2 of hyper =1.0.0-rc.3
Affects
builder::WantsProtocols3
… - webpki-tokio = tokio-runtime, webpki-roots
- native-tokio default = rustls-native-certs, tokio-runtime
- tokio-runtime native-tokio webpki-tokio?
-
Enables salvo-utils ^0.0.3
- tls12 default
-
Enables tls12 of rustls ^0.21.0 and tokio-rustls ^0.24.0
- logging default = log
-
Enables logging of rustls ^0.21.0 and tokio-rustls ^0.24.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.
- log logging
- rustls-native-certs native-tokio
-
Enables rustls-native-certs ^0.6
Affects
config::ConfigBuilderExt.with_native_roots
… - webpki-roots webpki-tokio?
-
Enables webpki-roots ^0.23
Affects
config::ConfigBuilderExt.with_webpki_roots
…