Skip to content

Commit

Permalink
Disable criterion's rayon feature on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTheCoolingFan committed Oct 9, 2023
1 parent 4fb3c38 commit 3ad5c0c
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 3ad5c0c

Please sign in to comment.