metrics-lib 0.9.0

The fastest metrics library for Rust. Lock-free 0.6ns gauges, 18ns counters, timers, rate meters, async timing, adaptive sampling, and system health. Cross-platform with minimal dependencies.
Documentation
1
2
3
4
5
6
7
8
fn main() {
    // Allow using `#[cfg(tarpaulin)]` in code without triggering unexpected cfg warnings.
    // This keeps CI logs clean when tarpaulin isn't present and preserves MSRV 1.70.0.
    println!("cargo:rustc-check-cfg=cfg(tarpaulin)");
    // Allow using `cfg!(coverage)` in tests to relax bounds under coverage instrumentation.
    // Registers the `coverage` cfg with rustc to avoid `unexpected_cfgs` warnings.
    println!("cargo:rustc-check-cfg=cfg(coverage)");
}