Cargo Features

[dependencies]
prometheus_exporter = { version = "0.8.5", default-features = false, features = ["logging", "internal_metrics"] }
default = internal_metrics, logging

Feature logging enables the start and request logging of the server. Disable prometheus_exporter metrics by disabling internal_metrics feature

logging default = log
internal_metrics default = lazy_static

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.

lazy_static internal_metrics
log logging