criterion.rs icon indicating copy to clipboard operation
criterion.rs copied to clipboard

Add a `cargo_criterion_support` feature flag

Open str4d opened this issue 2 years ago • 1 comments

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.

str4d avatar Dec 27 '21 19:12 str4d

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.

lemmih avatar Dec 28 '21 11:12 lemmih