From d4091720a34ae625ea31d964df4b6d7fae2f0596 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Tue, 4 Jun 2024 18:08:26 +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 15ccf99..ddc3ff5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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