Cargo Features
[dependencies]
simple-hyper-server-tls = { version = "0.3.2", default-features = false, features = ["tls-rustls", "tls-openssl", "hyper-h1", "hyper-h2", "hyper-full-server"] }
- default = hyper-full-server
-
The
hyper-full-server
feature is set by default wheneversimple-hyper-server-tls
is added without
somewhere in the dependency tree.default-features = false - tls-rustls = rustls, rustls-pemfile, tokio-rustls
-
Enables rustls of tls-listener ^0.5
Affects
simple-hyper-server-tls::rustls_server_config_from_pem_files
,simple-hyper-server-tls::rustls_server_config_from_pem_data
,simple-hyper-server-tls::TlsListener
… - tls-openssl = openssl
-
Enables openssl of tls-listener ^0.5
Affects
simple-hyper-server-tls::ssl_context_builder_from_pem_files
,simple-hyper-server-tls::ssl_context_builder_from_pem_data
,simple-hyper-server-tls::TlsListener
… - hyper-h1 hyper-full-server
-
Enables hyper-h1 of tls-listener ^0.5 and http1 of hyper ^0.14
hyper:
HTTP versions
- hyper-h2 hyper-full-server
-
Enables http2 of hyper ^0.14, hyper-h2 of tls-listener ^0.5
- hyper-full-server default = hyper-h1, hyper-h2
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.
- tls-listener hyper-h1? hyper-h2? tls-openssl? tls-rustls?
-
Enables tls-listener ^0.5
- tokio-rustls tls-rustls?
-
Enables tokio-rustls ^0.23
- rustls tls-rustls?
-
Enables rustls ^0.20
- rustls-pemfile tls-rustls?
-
Enables rustls-pemfile ^1.0
- openssl tls-openssl?