Skip to content

Commit

Permalink
Add use-wasm-bindgen no nphysics3d
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim authored and sebcrozet committed Sep 15, 2018
1 parent d106b14 commit 4deca95
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build/nphysics3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ keywords = [ "physics", "dynamics", "rigid", "real-time", "joints" ]
license = "BSD-3-Clause"

[features]
default = [ "dim3" ]
default = [ "dim3", "stdweb" ]
use-wasm-bindgen = [ "dim3", "wasm-bindgen" ]
dim3 = [ ]

[lib]
Expand All @@ -28,13 +29,16 @@ downcast = "0.9"
ncollide3d = "0.17"

[target.wasm32-unknown-unknown.dependencies]
stdweb = "0.4"
stdweb = {version = "0.4", optional = true}
wasm-bindgen = {version = "0.2.21", optional = true}

[target.wasm32-unknown-emscripten.dependencies]
stdweb = "0.4"
stdweb = {version = "0.4", optional = true}
wasm-bindgen = {version = "0.2.21", optional = true}

[target.asmjs-unknown-emscripten.dependencies]
stdweb = "0.4"
stdweb = {version = "0.4", optional = true}
wasm-bindgen = {version = "0.2.21", optional = true}

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
time = "0.1"

0 comments on commit 4deca95

Please sign in to comment.