From 301a5f36eb089ebfd89fd6ca8c45b2194b5cab2d Mon Sep 17 00:00:00 2001 From: Andrew Straw Date: Fri, 10 Apr 2020 18:33:52 +0200 Subject: [PATCH] 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 --- guide/src/reference/cli.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/src/reference/cli.md b/guide/src/reference/cli.md index da4f0fe6..51409273 100644 --- a/guide/src/reference/cli.md +++ b/guide/src/reference/cli.md @@ -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 ```