benchmark 0.8.0

Nanosecond-precision benchmarking for dev, testing, and production. Zero-overhead core timing when disabled; optional std-powered collectors and zero-dependency metrics (Watch/Timer) for real service observability.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use trybuild::TestCases;

#[cfg_attr(miri, ignore)]
#[test]
pub fn disabled_mode_compiles() {
    // This test relies on the cargo invocation features.
    // In CI we run it under --no-default-features (and also with other combos).
    // The fixture uses only APIs that must exist in disabled mode.
    let t = TestCases::new();
    t.pass("tests/trybuild/disabled_ok.rs");
}