Skip to content

Commit f3369db

Browse files
committed
fix: allow disabling criterion default features
1 parent a881b54 commit f3369db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crates/criterion_compat/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ categories = [
1616
]
1717
keywords = ["codspeed", "benchmark", "criterion"]
1818
[dependencies]
19-
criterion = "0.5.1"
19+
criterion = { version = "0.5.1", default-features = false }
2020
codspeed = { path = "../codspeed", version = "=2.1.0" }
2121
colored = "2.0.0"
2222

@@ -28,13 +28,19 @@ tokio = { version = "1.0", default-features = false, features = [
2828
async-std = { version = "1.9", optional = true }
2929

3030
[features]
31+
default = ["rayon", "plotters", "cargo_bench_support"]
32+
# Criterion.rs features
3133
async = ["futures", "criterion/async"]
32-
3334
async_futures = ["criterion/async_futures", "futures/executor", "async"]
3435
async_smol = ["criterion/async_smol", "smol", "async"]
3536
async_tokio = ["criterion/async_tokio", "tokio", "async"]
3637
async_std = ["criterion/async_std", "async-std", "async"]
3738

39+
html_reports = ["criterion/html_reports"]
40+
cargo_bench_support = ["criterion/cargo_bench_support"]
41+
csv_output = ["criterion/csv_output"]
42+
rayon = ["criterion/rayon"]
43+
plotters = ["criterion/plotters"]
3844

3945
[[bench]]
4046
name = "criterion_example"

0 commit comments

Comments
 (0)