From 1ecde68061050a4422e4a76e0c73beb323058e7c Mon Sep 17 00:00:00 2001 From: Sendil Kumar Date: Wed, 4 Apr 2018 13:56:36 +0200 Subject: [PATCH] update to wasm bindgen 0.2.0 --- README.md | 4 ++-- tests/fixtures/js-hello-world/Cargo.toml | 2 +- tests/fixtures/js-hello-world/src/lib.rs | 2 +- tests/fixtures/no-readme/Cargo.toml | 2 +- tests/fixtures/no-readme/src/lib.rs | 2 +- tests/fixtures/scopes/Cargo.toml | 2 +- tests/fixtures/scopes/src/lib.rs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6bb73bf..42b4c79 100644 --- a/README.md +++ b/README.md @@ -59,12 +59,12 @@ if you want to publish packages, you'll also need an account on [npm] and have crate-type = ["cdylib"] [dependencies] - wasm-bindgen = "0.1" + wasm-bindgen = "0.2" ``` 3. add this to the top of your `src/lib.rs`: ```rust - #![feature(proc_macro)] + #![feature(proc_macro, wasm_import_module, wasm_custom_section)] extern crate wasm_bindgen; diff --git a/tests/fixtures/js-hello-world/Cargo.toml b/tests/fixtures/js-hello-world/Cargo.toml index a9c35bc..88ccd65 100644 --- a/tests/fixtures/js-hello-world/Cargo.toml +++ b/tests/fixtures/js-hello-world/Cargo.toml @@ -10,4 +10,4 @@ repository = "https://github.com/ashleygwilliams/wasm-pack" crate-type = ["cdylib"] [dependencies] -wasm-bindgen = "0.1.0" +wasm-bindgen = "0.2.0" diff --git a/tests/fixtures/js-hello-world/src/lib.rs b/tests/fixtures/js-hello-world/src/lib.rs index d4fb8e9..9e44b28 100644 --- a/tests/fixtures/js-hello-world/src/lib.rs +++ b/tests/fixtures/js-hello-world/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro)] +#![feature(proc_macro, wasm_import_module, wasm_custom_section)] extern crate wasm_bindgen; diff --git a/tests/fixtures/no-readme/Cargo.toml b/tests/fixtures/no-readme/Cargo.toml index a11dfc6..d464024 100644 --- a/tests/fixtures/no-readme/Cargo.toml +++ b/tests/fixtures/no-readme/Cargo.toml @@ -10,4 +10,4 @@ repository = "https://github.com/ashleygwilliams/wasm-pack" crate-type = ["cdylib"] [dependencies] -wasm-bindgen = "0.1.0" +wasm-bindgen = "0.2.0" diff --git a/tests/fixtures/no-readme/src/lib.rs b/tests/fixtures/no-readme/src/lib.rs index d4fb8e9..9e44b28 100644 --- a/tests/fixtures/no-readme/src/lib.rs +++ b/tests/fixtures/no-readme/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro)] +#![feature(proc_macro, wasm_import_module, wasm_custom_section)] extern crate wasm_bindgen; diff --git a/tests/fixtures/scopes/Cargo.toml b/tests/fixtures/scopes/Cargo.toml index d70f9b6..2f0c28e 100644 --- a/tests/fixtures/scopes/Cargo.toml +++ b/tests/fixtures/scopes/Cargo.toml @@ -10,4 +10,4 @@ repository = "https://github.com/ashleygwilliams/wasm-pack" crate-type = ["cdylib"] [dependencies] -wasm-bindgen = "0.1.0" +wasm-bindgen = "0.2.0" diff --git a/tests/fixtures/scopes/src/lib.rs b/tests/fixtures/scopes/src/lib.rs index d4fb8e9..9e44b28 100644 --- a/tests/fixtures/scopes/src/lib.rs +++ b/tests/fixtures/scopes/src/lib.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro)] +#![feature(proc_macro, wasm_import_module, wasm_custom_section)] extern crate wasm_bindgen;