Cargo Features

[dependencies]
miniserve = { version = "0.27.1", default-features = false, features = ["tls"] }
default = tls

The tls feature is set by default whenever miniserve is added without default-features = false somewhere in the dependency tree.

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

Enables rustls of actix-web

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