Skip to content

Commit 63c4c62

Browse files
committed
Make criterion a normal dev-dependency
1 parent da1bb2a commit 63c4c62

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
components: rustfmt
1414
- run: cargo fmt -- --check
1515
- run: cargo test
16-
- run: cargo bench --features criterion
16+
- run: cargo bench

Cargo.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ once_cell = "1.5.2"
2222
# this is required to gate `nightly` related code paths
2323
cfg-if = "1.0.0"
2424

25-
# This is actually a dev-dependency, see https://github.com/rust-lang/cargo/issues/1596
26-
criterion = { version = "0.4.0", optional = true }
27-
2825
[dev-dependencies]
26+
criterion = "0.4.0"
2927

3028
[[bench]]
3129
name = "thread_local"
32-
required-features = ["criterion"]
3330
harness = false

benches/thread_local.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate criterion;
2-
extern crate thread_local;
3-
41
use criterion::{black_box, BatchSize};
52

63
use thread_local::ThreadLocal;

0 commit comments

Comments
 (0)