We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c48f1 commit 85c93f0Copy full SHA for 85c93f0
crates/test/Cargo.toml
@@ -20,6 +20,8 @@ wasm-bindgen = { path = '../..', version = '0.2.90' }
20
wasm-bindgen-futures = { path = '../futures', version = '0.4.40' }
21
wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.40' }
22
gg-alloc = { version = "1.0", optional = true }
23
+
24
+[target.'cfg(target_arch = "wasm32")'.dependencies]
25
minicov = { version = "0.3", optional = true }
26
27
[lib]
crates/test/src/lib.rs
@@ -69,4 +69,8 @@ macro_rules! wasm_bindgen_test_configure {
69
#[path = "rt/mod.rs"]
70
pub mod __rt;
71
72
+// Make this only available to wasm32 so that we don't
73
+// import minicov on other archs.
74
+// That way you can use normal cargo test without minicov
75
+#[cfg(target_arch = "wasm32")]
76
mod coverage;
0 commit comments