Cargo Features
[dependencies]
axum-prometheus = { version = "0.7.0", default-features = false, features = ["prometheus", "push-gateway"] }
- default = prometheus
-
The
prometheus
feature is set by default wheneveraxum-prometheus
is added without
somewhere in the dependency tree.default-features = false - prometheus default = metrics-exporter-prometheus
-
Affects
builder::PrometheusMetricLayerBuilder
,axum-prometheus::Handle
,axum-prometheus::PrometheusMetricLayer
… - push-gateway
-
Enables push-gateway of metrics-exporter-prometheus ^0.15.0
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.