Merge pull request #73 from Andy-Bell/use-cargo-wasm-bindgen

Fixes issue 69 - use Cargo version of wasm-bindgen to better ensure not-broken build
master
ashley williams 7 years ago committed by GitHub
commit 5c4a68ee52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 3
      src/bindgen.rs

@ -59,7 +59,7 @@ if you want to publish packages, you'll also need an account on [npm] and have
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
wasm-bindgen = { git = 'https://github.com/alexcrichton/wasm-bindgen' } wasm-bindgen = "0.1"
``` ```
3. add this to the top of your `src/lib.rs`: 3. add this to the top of your `src/lib.rs`:

@ -12,8 +12,7 @@ pub fn cargo_install_wasm_bindgen() {
let pb = progressbar::new(step); let pb = progressbar::new(step);
let _output = Command::new("cargo") let _output = Command::new("cargo")
.arg("install") .arg("install")
.arg("--git") .arg("wasm-bindgen")
.arg("https://github.com/alexcrichton/wasm-bindgen")
.output() .output()
.unwrap_or_else(|e| panic!("{} failed to execute process: {}", emoji::ERROR, e)); .unwrap_or_else(|e| panic!("{} failed to execute process: {}", emoji::ERROR, e));
pb.finish(); pb.finish();

Loading…
Cancel
Save