Skip to content

Commit

Permalink
Make dependencies used only in benchmarks dev-dependencies
Browse files Browse the repository at this point in the history
Optional features must be more about crate itself.
  • Loading branch information
AngelicosPhosphoros committed Oct 8, 2024
1 parent 2a10201 commit c427c90
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ categories = ["concurrency"]
license = "MIT OR Apache-2.0"
readme = "README.md"

[features]
bench = ["dep:divan", "dep:rayon"]

[dependencies]
divan = { version = "0.1.14", optional = true }
rayon = { version = "1.10.0", optional = true }
[dev-dependencies]
divan = "0.1.14"
rayon = "1.10.0"

[[bench]]
name = "overhead"
harness = false
required-features = ["bench"]

0 comments on commit c427c90

Please sign in to comment.