Open steinerkelvin opened 2 years ago
Maybe this isn't possible. The [bench]
attribute is unstable, and the criterion
only works for library crates as said here. Other libraries suffer from the same problem of criterion
, because needs to work in a file outside the src (it needs to be inside benches
directory).
It's the only way to use these benches libs from what i saw
https://github.com/marketplace/actions/continuous-benchmark
https://doc.rust-lang.org/cargo/commands/cargo-bench.html
https://crates.io/crates/criterion