Skip to content

Commit 8cee5e4

Browse files
committed
Move benchmarks to a separate crate in the workspace
This should make CI work on 1.41.1 even though criterion doesn't compile on that version.
1 parent b4cdd2d commit 8cee5e4

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,9 @@ optional = true
2323
[features]
2424
std = []
2525

26-
[dev-dependencies]
27-
criterion = "0.3"
28-
29-
[[bench]]
30-
name = "from_iterator"
31-
harness = false
32-
path = "benches/from_iterator.rs"
33-
3426
[workspace]
3527
members = [
3628
"enumflags_derive",
3729
"test_suite",
30+
"benchmarks",
3831
]

benchmarks/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "enumflags-benchmarks"
3+
version = "0.0.0"
4+
publish = false
5+
6+
[dependencies.enumflags2]
7+
path = "../"
8+
9+
[dev-dependencies]
10+
criterion = "0.3"
11+
12+
[[bench]]
13+
name = "from_iterator"
14+
harness = false
15+
path = "from_iterator.rs"

0 commit comments

Comments
 (0)