Cargo Features
[dependencies]
simple-http-server = { version = "0.6.10", default-features = false, features = ["only-openssl", "native-tls", "rustls"] }
- default = native-tls
-
The
native-tls
feature is set by default wheneversimple-http-server
is added without
somewhere in the dependency tree.default-features = false - only-openssl = native-tls, openssl
- native-tls default only-openssl? = hyper-native-tls
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-native-tls native-tls
- openssl only-openssl?
- rustls implicit feature
-
Enables rustls ^0.20
rustls:
Rustls is a modern TLS library written in Rust