diff --git a/build/nphysics2d/Cargo.toml b/build/nphysics2d/Cargo.toml index 76a426e3e..6a6a56389 100644 --- a/build/nphysics2d/Cargo.toml +++ b/build/nphysics2d/Cargo.toml @@ -12,7 +12,7 @@ license = "BSD-3-Clause" [features] default = [ "dim2", "stdweb" ] -wasm-bindgen-no-stdweb = [ "dim2", "wasm-bindgen" ] +use-wasm-bindgen = [ "dim2", "wasm-bindgen" ] dim2 = [ ] [lib] diff --git a/src/counters/timer.rs b/src/counters/timer.rs index 5f1e6dc02..c2d0ed064 100644 --- a/src/counters/timer.rs +++ b/src/counters/timer.rs @@ -61,7 +61,7 @@ fn now() -> f64 { } #[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), - feature = "wasm-bindgen-no-stdweb", + feature = "use-wasm-bindgen", ))] mod performance { use wasm_bindgen::prelude::*; @@ -74,7 +74,7 @@ mod performance { #[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), - feature = "wasm-bindgen-no-stdweb", + feature = "use-wasm-bindgen", ))] fn now() -> f64 { performance::now() / 1000.0 diff --git a/src/lib.rs b/src/lib.rs index c78538390..2b02295c1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -124,7 +124,7 @@ extern crate stdweb; #[cfg(all( any(target_arch = "wasm32", target_arch = "asmjs"), - feature = "wasm-bindgen-no-stdweb", + feature = "use-wasm-bindgen", ))] extern crate wasm_bindgen;