diff --git a/Cargo.toml b/Cargo.toml index a67af8b..9303cef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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