Cargo Features

[dependencies]
electrs = { version = "0.10.4", default-features = false, features = ["metrics", "metrics_process"] }
default = metrics

The metrics feature is set by default whenever electrs 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