Cargo Features
[dependencies]
miniserve = { version = "0.27.1", default-features = false, features = ["tls"] }
- default = tls
-
The
tls
feature is set by default wheneverminiserve
is added without
somewhere in the dependency tree.default-features = false - tls default = rustls, rustls-pemfile
-
This feature allows us to use rustls only on architectures supported by ring. See also https://github.com/briansmith/ring/issues/1182 and https://github.com/briansmith/ring/issues/562 and https://github.com/briansmith/ring/issues/1367
Affects
args::CliArgs.tls_cert
,args::CliArgs.tls_key
,config::MiniserveConfig.tls_rustls_config
…
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.
- rustls tls
-
Enables rustls ^0.20
- rustls-pemfile tls
-
Enables rustls-pemfile ^1.0