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 default-features = false somewhere in the dependency tree.

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.

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