Skip to content

Commit e694a51

Browse files
committed
Make criterion a benchmarking only dependency
1 parent e800aca commit e694a51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ async = []
3333
loom = { version = "0.7.2", features = ["futures"], optional = true }
3434

3535
[dev-dependencies]
36-
criterion = "0.5.1"
3736
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "time"] }
3837
async-std = { version = "1", features = ["attributes"] }
3938

39+
# Benchmarking only dependencies
40+
[target.'cfg(not(test))'.dev-dependencies]
41+
criterion = "0.5.1"
42+
43+
4044
[lints.rust]
4145
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(oneshot_loom)', 'cfg(oneshot_test_delay)'] }
4246

0 commit comments

Comments
 (0)