Cargo Features
[dependencies]
scuffle-metrics = { version = "0.0.0", default-features = false, features = ["prometheus"] }
- default = prometheus
-
The
prometheus
feature is set by default wheneverscuffle-metrics
is added without
somewhere in the dependency tree.default-features = false - prometheus default = protobuf
-
Enables prometheus
Affects
scuffle-metrics::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.
- protobuf prometheus
-
Enables protobuf ^2
Prometheus uses protobuf 2.x, so we need to use the same version.