File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ wasm-bindgen = { path = '../..', version = '0.2.90' }
20
20
wasm-bindgen-futures = { path = ' ../futures' , version = ' 0.4.40' }
21
21
wasm-bindgen-test-macro = { path = ' ../test-macro' , version = ' =0.3.40' }
22
22
gg-alloc = { version = " 1.0" , optional = true }
23
+
24
+ [target .'cfg(target_arch = "wasm32")' .dependencies ]
23
25
minicov = { version = " 0.3" , optional = true }
24
26
25
27
[lib ]
Original file line number Diff line number Diff line change @@ -69,4 +69,8 @@ macro_rules! wasm_bindgen_test_configure {
69
69
#[ path = "rt/mod.rs" ]
70
70
pub mod __rt;
71
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" ) ]
72
76
mod coverage;
You can’t perform that action at this time.
0 commit comments