Merge pull request #41 from sendilkumarn/fix-bindgen

fix: adding wasm-bindgen version rather than git repo
master
ashley williams 7 years ago committed by GitHub
commit 450131f0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      examples/js-hello-world/Cargo.lock
  2. 2
      examples/js-hello-world/Cargo.toml
  3. 3
      examples/js-hello-world/src/lib.rs

@ -17,7 +17,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "js-hello-world"
version = "0.1.0"
dependencies = [
"wasm-bindgen 0.1.0 (git+https://github.com/alexcrichton/wasm-bindgen)",
"wasm-bindgen 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@ -122,27 +122,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "wasm-bindgen"
version = "0.1.0"
source = "git+https://github.com/alexcrichton/wasm-bindgen#31853ad0ba1e4e75384056a57cd6040854f58226"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"wasm-bindgen-macro 0.1.0 (git+https://github.com/alexcrichton/wasm-bindgen)",
"wasm-bindgen-macro 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.1.0"
source = "git+https://github.com/alexcrichton/wasm-bindgen#31853ad0ba1e4e75384056a57cd6040854f58226"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)",
"syn 0.12.13 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-bindgen-shared 0.1.0 (git+https://github.com/alexcrichton/wasm-bindgen)",
"wasm-bindgen-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.1.0"
source = "git+https://github.com/alexcrichton/wasm-bindgen#31853ad0ba1e4e75384056a57cd6040854f58226"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)",
@ -166,6 +166,6 @@ dependencies = [
"checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6"
"checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc"
"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
"checksum wasm-bindgen 0.1.0 (git+https://github.com/alexcrichton/wasm-bindgen)" = "<none>"
"checksum wasm-bindgen-macro 0.1.0 (git+https://github.com/alexcrichton/wasm-bindgen)" = "<none>"
"checksum wasm-bindgen-shared 0.1.0 (git+https://github.com/alexcrichton/wasm-bindgen)" = "<none>"
"checksum wasm-bindgen 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "717507a3c7ef09d740c6d781bda57ba054d7b776f3e27d4478e25a773afd2e4b"
"checksum wasm-bindgen-macro 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cbc1a194a8fe6319f9f326f0c03d2083d61727ace574f9b1df083bad79a314ad"
"checksum wasm-bindgen-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8b7cf730a826f1ec1ea2143d8582d5d2d27c0775035652daf0e0337225e8566b"

@ -10,4 +10,4 @@ repository = "https://github.com/ashleygwilliams/wasm-pack"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = { git = 'https://github.com/alexcrichton/wasm-bindgen' }
wasm-bindgen = "0.1.0"

@ -10,7 +10,6 @@ extern {
}
#[wasm_bindgen]
#[no_mangle]
pub extern fn greet(name: &str) {
pub fn greet(name: &str) {
alert(&format!("Hello, {}!", name));
}

Loading…
Cancel
Save