Update criterion dependency and add feature for benchmarks

This commit is contained in:
Palash Tyagi 2025-05-04 02:15:38 +01:00
parent 7a3ddc9147
commit b4069fa18b

View File

@ -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
required-features = ["bench"]