diff --git a/.cargo/config.toml b/.cargo/config.toml index 00ef5d4..48164e2 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,4 +2,4 @@ BEVY_ASSET_ROOT = "." [build] -rustflags = ["-Z", "threads=8"] \ No newline at end of file +rustflags = ["-Z", "threads=8", "--cfg=web_sys_unstable_apis"] \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index dcbfcca..ee266eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -665,7 +665,7 @@ dependencies = [ [[package]] name = "bevy_iconwars" -version = "0.1.5" +version = "0.1.6" dependencies = [ "anyhow", "bevy", diff --git a/Cargo.toml b/Cargo.toml index ef19d37..ac7657a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_iconwars" -version = "0.1.5" +version = "0.1.6" edition = "2021" license = "MIT OR Apache-2.0" @@ -22,10 +22,8 @@ thiserror = "1.0" serde = "1.0" serde_json = "1.0" rand = "0.8" -bevy_prototype_lyon = "0.11" - -[target.'cfg(target_arch = "x86_64")'.dependencies] bevy_egui = "0.26" +bevy_prototype_lyon = "0.11" # cargo build / cargo build --release --no-default-features [features] diff --git a/README.md b/README.md index 810d278..8d01fb0 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ can be adjusted in real-time, but it may crash the game. ## Changelog +* `v0.1.6` fix issue with wasm build of bevy_egui * `v0.1.4` update bevy version and lock movement rotation * `v0.1.3` (**this version was the Bevy Jam entry**) removed some verbose debug logging; fixed player allowed to shoot in dropzone * `v0.1.2` fixed a bug where the game crashed when all music tracks were played diff --git a/src/game/mod.rs b/src/game/mod.rs index 6e36796..b0f3aec 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -4,7 +4,6 @@ use bevy::prelude::*; mod assets; mod audio; mod camera; -#[cfg(not(target_arch = "wasm32"))] mod debug; mod hud; mod icons; @@ -28,8 +27,6 @@ impl Plugin for GamePlugin { hud::HudPlugin, audio::AudioPlugin, )); - #[cfg(not(target_arch = "wasm32"))] - app.add_plugins(debug::DebugPlugin); - app.add_plugins(FrameTimeDiagnosticsPlugin); + app.add_plugins((debug::DebugPlugin, FrameTimeDiagnosticsPlugin)); } }