From 32762875c2009fbd29e545323d61eafb91268634 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Fri, 28 Nov 2025 13:44:41 -0800 Subject: [PATCH] Remove `getrandom/wasm_js` dependency from `bevy_platform`. Fixes , allowing `bevy_platform` and dependents such as `bevy_ecs` to be used on web without incurring the `RUSTFLAGS` requirement of `getrandom`. --- crates/bevy_platform/Cargo.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/bevy_platform/Cargo.toml b/crates/bevy_platform/Cargo.toml index c428a6bf7b79d..e17d5a4bc0c72 100644 --- a/crates/bevy_platform/Cargo.toml +++ b/crates/bevy_platform/Cargo.toml @@ -50,7 +50,6 @@ critical-section = ["dep:critical-section", "portable-atomic/critical-section"] web = [ "std", "dep:web-time", - "dep:getrandom", "dep:wasm-bindgen-futures", "dep:wasm-bindgen", "dep:js-sys", @@ -76,9 +75,6 @@ rayon = { version = "1", default-features = false, optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] web-time = { version = "1.1", default-features = false, optional = true } -getrandom = { version = "0.3.0", default-features = false, optional = true, features = [ - "wasm_js", -] } wasm-bindgen-futures = { version = "0.4", default-features = false, optional = true } futures-channel = { version = "0.3", default-features = false } js-sys = { version = "0.3", default-features = false, optional = true }