Crate features / metrics-util
Feature flags · metrics-util 0.20.4 · from crates.io 2026-10-24
metrics-util features: what each one does, and the line to copy
Short answermetrics-util 0.20.4 has 7 features. By default it turns on debugging, layers, recency, registry, storage; add default-features = false to start from nothing. It needs Rust 1.71.1 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
debugging | yes | indexmap, ordered-float, registry |
layer-filter | aho-corasick | |
layer-router | radix_trie | |
layers | yes | layer-filter, layer-router |
recency | yes | registry, quanta |
registry | yes | hashbrown, storage |
storage | yes | crossbeam-epoch, crossbeam-utils, rand, rand_xoshiro, sketches-ddsketch |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version metrics-util declares (rust-version), and the release that changed it:
- 0.14.0 (2022-07-21): Rust 1.56.1
- 0.15.0 (2023-04-16): Rust 1.61.0
- 0.16.0 (2023-12-24): Rust 1.65.0
- 0.17.0 (2024-05-27): Rust 1.70.0
- 0.18.0 (2024-10-12): Rust 1.71.1
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p metrics-util --precise <version>, or use resolver 3, which picks compatible versions for you.
More on metrics-util
Real downloads, dependents and alternatives: metrics-util crate data (245.4K real downloads a day, 226 dependents).
Security record: metrics-util advisories.
docs.rs feature list · crates.io · license MIT · edition 2018
Up next
Before you depend on itmetrics-util crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?