Skip to content

Commit 301a5f3

Browse files
astrawcanadaduane
andauthored
Installation instructions for wasm-bindgen CLI tool (#2076)
* Installation instructions for wasm-bindgen CLI tool * Recommend wasm-pack * Justify recommendation of wasm-pack to install wasm-bindgen. Co-authored-by: Duane Johnson <[email protected]>
1 parent a19c8a3 commit 301a5f3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

guide/src/reference/cli.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ always be listed via `wasm-bindgen --help`.
99
1010
[wasm-pack]: https://github.com/rustwasm/wasm-pack
1111

12+
## Installation
13+
14+
The recommend way to install the `wasm-bindgen` command line tool is with the
15+
`wasm-pack` installer described
16+
[here](https://rustwasm.github.io/wasm-pack/installer/). After installing
17+
`wasm-pack`, run `wasm-pack build` to install the command line tool. (Although
18+
the command line tool is available through its own crate, `wasm-bindgen-cli`,
19+
`wasm-pack build` will ensure the version installed matches the version of
20+
`wasm-bindgen` in `Cargo.lock`.)
21+
1222
## Usage
1323

1424
```

0 commit comments

Comments
 (0)