Skip to content

Commit

Permalink
Make criterion a regular dev-dependency (#519)
Browse files Browse the repository at this point in the history
This avoids compilation failing for the benchmark targets.
  • Loading branch information
djc authored Mar 21, 2024
1 parent 124821e commit 2294ed0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions html5ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ mac = "0.1"
markup5ever = { version = "0.12", path = "../markup5ever" }

[dev-dependencies]
typed-arena = "2.0.2"

[target.'cfg(bench)'.dev-dependencies]
criterion = "0.3"
typed-arena = "2.0.2"

[build-dependencies]
quote = "1"
Expand Down
4 changes: 1 addition & 3 deletions xml5ever/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ mac = "0.1"
markup5ever = {version = "0.12", path = "../markup5ever" }

[dev-dependencies]
rustc-test = "0.3"

[target.'cfg(bench)'.dev-dependencies]
criterion = "0.3"
rustc-test = "0.3"

[[bench]]
name = "xml5ever"
Expand Down

0 comments on commit 2294ed0

Please sign in to comment.