Touch up documentation about futures (#1753)

This commit is contained in:
Alex Crichton
2019-09-05 11:49:04 -05:00
committed by GitHub
parent 3c887c40b7
commit 84898c1d53
3 changed files with 34 additions and 27 deletions

View File

@ -2,14 +2,15 @@
### Add `wasm-bindgen-test` to Your `Cargo.toml`'s `[dev-dependencies]`
Make sure to replace "X.Y.Z" with the same version of `wasm-bindgen` that you
have in the `[dependencies]` section!
```toml
[dev-dependencies]
wasm-bindgen-test = "X.Y.Z"
wasm-bindgen-test = "0.3.0"
```
Note that the `0.3.0` track of `wasm-bindgen-test` supports Rust 1.39.0+, which
is currently the nightly channel (as of 2019-09-05). If you want support for
older compilers use the `0.2.*` track of `wasm-bindgen-test`.
## Write Some Tests
Create a `$MY_CRATE/tests/wasm.rs` file: