From 16e606ea0c55bc4b2de57a42b195b10b9d6dff13 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Tue, 4 Jun 2024 18:07:47 +0100 Subject: [PATCH] Allow benchmark flags to be passed to criterion. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 34b70c4..094cf97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"