From ccca8a47d0171c69354e89be5f6a8627c3a47d5f Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Wed, 8 May 2024 02:28:13 -0400 Subject: [PATCH 1/3] Add missing web-sys feature --- crates/bevy_asset/Cargo.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index c0ce99bacd9af..f00589b17b8e5 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -23,7 +23,7 @@ bevy_app = { path = "../bevy_app", version = "0.14.0-dev" } bevy_asset_macros = { path = "macros", version = "0.14.0-dev" } bevy_ecs = { path = "../bevy_ecs", version = "0.14.0-dev" } bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev", features = [ - "uuid", + "uuid", ] } bevy_tasks = { path = "../bevy_tasks", version = "0.14.0-dev" } bevy_utils = { path = "../bevy_utils", version = "0.14.0-dev" } @@ -47,7 +47,12 @@ bevy_winit = { path = "../bevy_winit", version = "0.14.0-dev" } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2" } -web-sys = { version = "0.3", features = ["Request", "Window", "Response"] } +web-sys = { version = "0.3", features = [ + "Request", + "Window", + "Response", + "WorkerGlobalScope", +] } wasm-bindgen-futures = "0.4" js-sys = "0.3" From 1bfcf0f2b2cd926ee491221c2458f9145a7cfc75 Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Wed, 8 May 2024 02:48:15 -0400 Subject: [PATCH 2/3] additioanlly remove Request feature --- crates/bevy_asset/Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index f00589b17b8e5..a310080a459e4 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -48,7 +48,6 @@ bevy_winit = { path = "../bevy_winit", version = "0.14.0-dev" } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2" } web-sys = { version = "0.3", features = [ - "Request", "Window", "Response", "WorkerGlobalScope", From 06814cf7e3a9a91f75de89f3787f75d9c3ffda5d Mon Sep 17 00:00:00 2001 From: Sean Sullivan Date: Wed, 8 May 2024 03:01:40 -0400 Subject: [PATCH 3/3] fix spacing --- crates/bevy_asset/Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_asset/Cargo.toml b/crates/bevy_asset/Cargo.toml index a310080a459e4..e380be18b287a 100644 --- a/crates/bevy_asset/Cargo.toml +++ b/crates/bevy_asset/Cargo.toml @@ -23,7 +23,7 @@ bevy_app = { path = "../bevy_app", version = "0.14.0-dev" } bevy_asset_macros = { path = "macros", version = "0.14.0-dev" } bevy_ecs = { path = "../bevy_ecs", version = "0.14.0-dev" } bevy_reflect = { path = "../bevy_reflect", version = "0.14.0-dev", features = [ - "uuid", + "uuid", ] } bevy_tasks = { path = "../bevy_tasks", version = "0.14.0-dev" } bevy_utils = { path = "../bevy_utils", version = "0.14.0-dev" } @@ -48,9 +48,9 @@ bevy_winit = { path = "../bevy_winit", version = "0.14.0-dev" } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = { version = "0.2" } web-sys = { version = "0.3", features = [ - "Window", - "Response", - "WorkerGlobalScope", + "Window", + "Response", + "WorkerGlobalScope", ] } wasm-bindgen-futures = "0.4" js-sys = "0.3"