Cargo Features

[dependencies]
prometheus = { version = "0.14.0", default-features = false, features = ["gen", "nightly", "process", "push"] }
default = protobuf

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

gen = protobuf-codegen
nightly = libc

Affects histogram::Timespec

process = libc, procfs

Affects prometheus::process_collector

push = libc, protobuf, reqwest

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.

libc nightly? process? push?
protobuf default push?

Affects prometheus::proto

reqwest push?
protobuf-codegen build gen?
procfs linux process?