Cargo Features
[dependencies]
axum-util = { version = "0.2.2", default-features = false, features = ["tls", "auth", "prometheus", "oidc"] }
- default = auth, oidc, prometheus, tls
-
These default features are set whenever
axum-util
is added without
somewhere in the dependency tree.default-features = false - tls default = rustls, tokio-rustls
-
Affects
axum-util::tls_acceptor
… - auth default = hmac, sha2
-
Enables jwt
Affects
axum-util::auth
… - prometheus default
-
Enables prometheus
Affects
logger::LoggerConfig.metric_name
… - oidc default = openid
-
Affects
axum-util::oidc
…
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.
- openid oidc
-
Enables openid ^0.11
- hmac auth
- sha2 auth
- rustls tls
-
Enables rustls ^0.20
- tokio-rustls tls
-
Enables tokio-rustls ^0.23