diff options
Diffstat (limited to 'build')
| -rw-r--r-- | build/rapier_testbed2d/Cargo.toml | 13 | ||||
| -rw-r--r-- | build/rapier_testbed3d/Cargo.toml | 15 |
2 files changed, 25 insertions, 3 deletions
diff --git a/build/rapier_testbed2d/Cargo.toml b/build/rapier_testbed2d/Cargo.toml index eb713aa..b501a1f 100644 --- a/build/rapier_testbed2d/Cargo.toml +++ b/build/rapier_testbed2d/Cargo.toml @@ -27,7 +27,6 @@ other-backends = [ "wrapped2d", "nphysics2d" ] [dependencies] nalgebra = { version = "0.26", features = [ "rand" ] } -kiss3d = { version = "0.31", features = [ "conrod" ] } rand = "0.8" rand_pcg = "0.3" instant = { version = "0.1", features = [ "web-sys", "now" ]} @@ -42,6 +41,18 @@ bincode = "1" Inflector = "0.11" md5 = "0.7" +bevy_egui = "0.4" +bevy-orbit-controls = "2" + +# Dependencies for native only. +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +bevy = {version = "0.5", default-features = false, features = ["bevy_wgpu", "bevy_winit", "render", "x11"]} + +# Dependencies for WASM only. +[target.'cfg(target_arch = "wasm32")'.dependencies] +bevy = {version = "0.5", default-features = false, features = ["bevy_winit", "render"]} +bevy_webgl2 = "0.5" + [dependencies.rapier2d] path = "../rapier2d" version = "0.8" diff --git a/build/rapier_testbed3d/Cargo.toml b/build/rapier_testbed3d/Cargo.toml index ea10307..0038fa8 100644 --- a/build/rapier_testbed3d/Cargo.toml +++ b/build/rapier_testbed3d/Cargo.toml @@ -26,7 +26,6 @@ other-backends = [ "physx", "physx-sys", "glam", "nphysics3d" ] [dependencies] nalgebra = { version = "0.26", features = [ "rand" ] } -kiss3d = { version = "0.31", features = [ "conrod" ] } rand = "0.8" rand_pcg = "0.3" instant = { version = "0.1", features = [ "web-sys", "now" ]} @@ -44,7 +43,19 @@ md5 = "0.7" Inflector = "0.11" serde = { version = "1", features = [ "derive" ] } +bevy_egui = "0.4" +bevy-orbit-controls = "2" + +# Dependencies for native only. +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +bevy = {version = "0.5", default-features = false, features = ["bevy_wgpu", "bevy_winit", "render", "x11"]} + +# Dependencies for WASM only. +[target.'cfg(target_arch = "wasm32")'.dependencies] +bevy = {version = "0.5", default-features = false, features = ["bevy_winit", "render"]} +bevy_webgl2 = "0.5" + [dependencies.rapier3d] path = "../rapier3d" version = "0.8" -features = [ "serde-serialize" ] +features = [ "serde-serialize" ]
\ No newline at end of file |
