Cargo Features
[dependencies]
prometheus = { version = "0.13.3", default-features = false, features = ["gen", "nightly", "process", "push"] }
- default = protobuf
-
The
protobuf
feature is set by default wheneverprometheus
is added without
somewhere in the dependency tree.default-features = false - gen = protobuf-codegen-pure
- 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.
- libc nightly? process? push?
- protobuf default push?
-
Enables protobuf ^2.0
Affects
prometheus::proto
… - reqwest push?
-
With blocking and default (default-tls)
- protobuf-codegen-pure gen? build
-
Enables protobuf-codegen-pure
- procfs cfg(target_os = "linux") process?
-
Enables procfs ^0.14