From b4069fa18b1d5fd66b14cca00194e3afaabd95c6 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 4 May 2025 02:15:38 +0100 Subject: [PATCH] Update criterion dependency and add feature for benchmarks --- Cargo.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c003a95..f8343d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,10 +13,15 @@ crate-type = ["cdylib", "lib"] [dependencies] chrono = "^0.4.10" +criterion = { version = "0.5", features = ["html_reports"], optional = true } -[dev-dependencies] -criterion = { version = "0.4", features = ["html_reports"] } +[features] +bench = ["dep:criterion"] + +# [dev-dependencies] +# criterion = { version = "0.5", features = ["html_reports"], optional = true } [[bench]] name = "benchmarks" -harness = false \ No newline at end of file +harness = false +required-features = ["bench"]