Skip to content

Commit

Permalink
Rename feature to use-wasm-bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim authored and sebcrozet committed Sep 15, 2018
1 parent 951d323 commit d106b14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/nphysics2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions src/counters/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d106b14

Please sign in to comment.