Skip to content

Commit

Permalink
fix: disable criterion's rayon feature on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTheCoolingFan authored and erwanvivien committed Oct 9, 2023
1 parent d81baf5 commit 4bdc3d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ wasm-opt = ["-Oz"]

[dev-dependencies]
base64 = "0.21.3"
criterion = "0.4"
qrcode = "0.12.0"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
criterion = { version = "0.4", default-features = false, features = ["cargo_bench_support", "plotters"]}

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

[[bench]]
name = "qr"
harness = false
Expand Down

0 comments on commit 4bdc3d3

Please sign in to comment.