Skip to content

Commit

Permalink
Allow benchmark flags to be passed to criterion.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Jun 4, 2024
1 parent fbc0e08 commit 16e606e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ wildcard-imports = "allow"
# can remove this.
redundant-explicit-links = "allow"

[lib]
# Disable libtest to make sure criterion can parse the command line flags.
# See https://bheisler.github.io/criterion.rs/book/faq.html and https://github.com/rust-lang/rust/issues/47241.
bench = false

[[bench]]
name = "std_rc"
path = "benches/std_rc.rs"
Expand Down

0 comments on commit 16e606e

Please sign in to comment.