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 <duane.johnson@gmail.com>
This commit is contained in:
Andrew Straw 2020-04-10 18:33:52 +02:00 committed by GitHub
parent a19c8a3fe0
commit 301a5f36eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,16 @@ always be listed via `wasm-bindgen --help`.
[wasm-pack]: https://github.com/rustwasm/wasm-pack
## Installation
The recommend way to install the `wasm-bindgen` command line tool is with the
`wasm-pack` installer described
[here](https://rustwasm.github.io/wasm-pack/installer/). After installing
`wasm-pack`, run `wasm-pack build` to install the command line tool. (Although
the command line tool is available through its own crate, `wasm-bindgen-cli`,
`wasm-pack build` will ensure the version installed matches the version of
`wasm-bindgen` in `Cargo.lock`.)
## Usage
```