From 0a945725e56375ccd5447b08e17fa1e46830f802 Mon Sep 17 00:00:00 2001 From: scriptjs Date: Sun, 14 Oct 2018 19:51:43 -0300 Subject: [PATCH] docs: update README #30 --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index c9ba5b1..e4706d9 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,34 @@ yarn add --dev @wasm-tool/wasm-pack-plugin ``` +### Rust lang + +Rust >= `rustc 1.31.0-nightly` is required to fetch and compile rust wasm. Rust is installed and managed using [`rustup`](https://rustup.rs/) + ### `wasm-pack` We expect `wasm-pack` to be in your `$PATH`. See [installation here](https://github.com/rustwasm/wasm-pack/blob/master/docs/src/setup.md#installing-wasm-pack). +### `wasm-bindgen-cli` + +`wasm-bindgen` is a build requirement for `wasm-pack` and a dependency of `wasm-bindgen-cli`. To verify installation, run: + +``` +which wasm-bindgen +``` + +If a path is not returned, install `wasm-bindgen-cli` using the cargo package manager: + +``` +cargo +nightly install wasm-bindgen-cli +``` + +Following installation, you may be prompted to upgrade the `wasm-bindgen` dependency. This can be done using the following: + +``` +cargo update -p wasm-bindgen +``` + ## Usage Add the loader in your `webpack.config.js`: