Cargo Features
[dependencies]
metrics-exporter-prometheus = { version = "0.14.0", default-features = false, features = ["async-runtime", "http-listener", "push-gateway"] }
- default = http-listener, push-gateway
-
These default features are set whenever
metrics-exporter-prometheus
is added without
somewhere in the dependency tree.default-features = false - async-runtime http-listener push-gateway = tokio
-
Enables hyper-util
- http-listener default = async-runtime, http-body-util, ipnet, tracing
-
Enables server-auto of hyper-util and hyper
Optional
Affects
exporter::ExporterFuture
… - push-gateway default = async-runtime, http-body-util, hyper-tls, tracing
-
Enables hyper and hyper-util
Affects
exporter::ExporterFuture
…
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.