Cargo Features

[dependencies]
electrs2 = { version = "0.9.9", default-features = false, features = ["metrics", "metrics_process"] }
default = metrics

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

metrics default = prometheus, tiny_http
metrics_process

Enables process of prometheus

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.

prometheus metrics metrics_process?
tiny_http metrics