Cargo Features

axum-server has no features set by default.

axum-server = { version = "0.5.1", features = ["tls-rustls", "tls-openssl"] }
tls-rustls = arc-swap, pin-project-lite, rustls, rustls-pemfile, tokio-rustls

Enables fs and time of tokio

Affects axum-server::tls_rustls

tls-openssl = openssl, pin-project-lite, tokio-openssl

Affects axum-server::tls_openssl

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

arc-swap tls-rustls?

pin-project-lite tls-openssl? tls-rustls?
rustls tls-rustls?

With dangerous_configuration and default features

rustls-pemfile tls-rustls?

Enables rustls-pemfile ^1

tokio-rustls tls-rustls?

With default features

openssl tls-openssl?
tokio-openssl tls-openssl?