Skip to content

Commit

Permalink
Fix wasm32 dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and lu-zero committed Mar 17, 2024
1 parent b3f5895 commit d3ce0f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ features = ["parallel"]
signal-hook = { version = "0.3", optional = true }

[dev-dependencies]
assert_cmd = "2.0"
criterion = "0.5"
pretty_assertions = "1.4.0"
interpolate_name = "0.2.4"
nom = "7.1.3"
Expand All @@ -145,6 +143,14 @@ rand = "0.8"
rand_chacha = "0.3"
semver = "1.0"

# Exclude dependencies and features that don't work on wasm32:
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
criterion = { version = "0.5", default-features = false }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
assert_cmd = "2.0"
criterion = "0.5"

[target.'cfg(fuzzing)'.dependencies]
arbitrary = "1.3"
interpolate_name = "0.2.4"
Expand Down

0 comments on commit d3ce0f6

Please sign in to comment.