criterion.rs
criterion.rs copied to clipboard
Add a `cargo_criterion_support` feature flag
This enables cargo-criterion
support to be compiled out if it is not required. A compile-time error is added to require that at least one of [cargo_bench_support
, cargo_criterion_support
] must be enabled.
I'm not sure what we should do about cargo_bench_support
. The benefits of using criterion
without cargo bench
support seem very minor to me. Unless there is a compelling use-case, I think we should keep cargo_bench_support
as a dummy feature that does nothing.