Cargo Features
[dependencies]
tokio-metrics = { version = "0.4.1", default-features = false, features = ["metrics-rs-integration", "rt"] }
- default = rt
-
The
rt
feature is set by default whenevertokio-metrics
is added without
somewhere in the dependency tree.default-features = false - metrics-rs-integration
-
Enables metrics
- rt default = tokio
-
Affects
runtime::RuntimeMonitor
,runtime::RuntimeMetrics
…
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.