You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/src/wasm-bindgen-test/usage.md
+6
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,9 @@ Run the tests by passing `--target wasm32-unknown-unknown` to `cargo test`:
127
127
```
128
128
cargo test --target wasm32-unknown-unknown
129
129
```
130
+
131
+
If you also need to run doctests, add the unstable [`-Zdoctest-xcompile`](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#doctest-xcompile) flag. This requires using the Rust nightly channel like this:
132
+
133
+
```
134
+
cargo +nightly test --target wasm32-unknown-unknown -Zdoctest-xcompile
0 commit comments