Cargo Features

[dependencies]
metrics-exporter-prometheus = { version = "0.16.0", default-features = false, features = ["async-runtime", "http-listener", "uds-listener", "push-gateway"] }
default = http-listener, push-gateway

These default features are set whenever metrics-exporter-prometheus is added without default-features = false somewhere in the dependency tree.

async-runtime http-listener push-gateway = tokio

Enables hyper-util

http-listener default uds-listener? = async-runtime, http-body-util, ipnet, tracing

Enables server-auto of hyper-util and hyper

Optional

Affects exporter::ExporterError, exporter::ExporterFuture

uds-listener = http-listener
push-gateway default = async-runtime, http-body-util, hyper-rustls, tracing

Enables hyper and hyper-util

Affects exporter::ExporterError, 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.

http-body-util http-listener push-gateway
hyper http-listener push-gateway
hyper-rustls push-gateway
hyper-util async-runtime? http-listener push-gateway
ipnet http-listener
tokio async-runtime?
tracing http-listener push-gateway