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 1272bd1 commit d409172
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 @@ -82,6 +82,11 @@ redundant-explicit-links = "allow"
[package.metadata.docs.rs]
features = ["serde"]

[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_linked_list"
harness = false
Expand Down

0 comments on commit d409172

Please sign in to comment.