Cargo Features

[dependencies]
prometheus_push = { version = "0.4.4", default-features = false, features = ["non_blocking", "blocking", "prometheus_crate", "prometheus_client_crate", "with_reqwest", "with_reqwest_blocking"] }
default = non_blocking

The non_blocking feature is set by default whenever prometheus_push is added without default-features = false somewhere in the dependency tree.

non_blocking default with_reqwest? = async-trait

Affects prometheus_push::non_blocking, utils::PushType

blocking with_reqwest_blocking?

Affects prometheus_push::blocking, utils::PushType

prometheus_crate = prometheus

Affects prometheus_push::prometheus_crate

prometheus_client_crate = prometheus-client

Affects prometheus_push::prometheus_client_crate

with_reqwest = log, non_blocking, reqwest

Affects prometheus_push::with_reqwest, prometheus_client_crate::PrometheusClientMetricsPusher, prometheus_crate::PrometheusMetricsPusher

with_reqwest_blocking = blocking, log

Enables blocking of reqwest

Affects blocking::with_reqwest, prometheus_client_crate::PrometheusClientMetricsPusherBlocking, prometheus_crate::PrometheusMetricsPusherBlocking

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.

async-trait non_blocking
prometheus prometheus_crate?
prometheus-client prometheus_client_crate?
reqwest with_reqwest? with_reqwest_blocking?
log with_reqwest? with_reqwest_blocking?