change references to wasm-bindgen from pointing at git repo to pointing at crates.io

master
andy-bell 7 years ago
parent 3c2447e2bd
commit f77eddd498
No known key found for this signature in database
GPG Key ID: 023F2AD4105EB83E
  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"]
[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`:

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

Loading…
Cancel
Save