Skip to content

Commit

Permalink
Make criterion a normal dev-dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu authored and terrarier2111 committed Jun 13, 2023
1 parent 0d8a4f1 commit da5e4dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
components: rustfmt
- run: cargo fmt -- --check
- run: cargo test
- run: cargo bench --features criterion
- run: cargo bench
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ once_cell = "1.5.2"
# this is required to gate `nightly` related code paths
cfg-if = "1.0.0"

# This is actually a dev-dependency, see https://github.com/rust-lang/cargo/issues/1596
criterion = { version = "0.4.0", optional = true }

[dev-dependencies]
criterion = "0.4.0"

[[bench]]
name = "thread_local"
required-features = ["criterion"]
harness = false
3 changes: 0 additions & 3 deletions benches/thread_local.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate criterion;
extern crate thread_local;

use criterion::{black_box, BatchSize};

use thread_local::ThreadLocal;
Expand Down

0 comments on commit da5e4dc

Please sign in to comment.