Cargo Features

[dependencies]
metrics-util = { version = "0.19.0", default-features = false, features = ["debugging", "layers", "layer-filter", "layer-router", "recency", "registry", "storage", "ahash"] }
default = debugging, layers, recency, registry, storage

These default features are set whenever metrics-util is added without default-features = false somewhere in the dependency tree.

debugging default = indexmap, ordered-float, registry

Affects metrics-util::debugging

layers default = layer-filter, layer-router
layer-filter layers = aho-corasick
layer-router layers = radix_trie
recency default = quanta, registry
registry default debugging recency = hashbrown, storage

Affects metrics-util::registry

storage default registry = crossbeam-epoch, crossbeam-utils, rand, rand_xoshiro, sketches-ddsketch

Affects metrics-util::storage

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.

ahash implicit feature

Enables ahash

ahash:

A non-cryptographic hash function using AES-NI for high performance

aho-corasick layer-filter?
crossbeam-epoch storage
crossbeam-utils storage
hashbrown registry
indexmap debugging
ordered-float debugging
quanta recency
rand storage
rand_xoshiro storage
radix_trie layer-router?
sketches-ddsketch storage