diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6158060c0299a..8cff3eeb221a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -179,6 +179,11 @@ jobs: uses: ./.github/actions/install-linux-deps - name: Check Compile run: cargo check -p bevy --no-default-features --features default_no_std --target x86_64-unknown-none + # Check for regression in "web" feature breaking no_std builds. + # This is not a separate CI job because the added feature should mostly have no effect + # and be able to reuse the prior build. + - name: Check Compile with --features=web + run: cargo check -p bevy --no-default-features --features default_no_std,web --target x86_64-unknown-none check-compiles-no-std-portable-atomic: runs-on: ubuntu-latest diff --git a/crates/bevy_platform/Cargo.toml b/crates/bevy_platform/Cargo.toml index e17d5a4bc0c72..6b70808c1f9eb 100644 --- a/crates/bevy_platform/Cargo.toml +++ b/crates/bevy_platform/Cargo.toml @@ -45,10 +45,8 @@ alloc = ["portable-atomic-util/alloc", "dep:hashbrown", "serde?/alloc"] ## on all platforms, including `no_std`. critical-section = ["dep:critical-section", "portable-atomic/critical-section"] -## Enables use of browser APIs. -## Note this is currently only applicable on `wasm32` architectures. +## Enables use of browser APIs if the build is a `wasm32` target. web = [ - "std", "dep:web-time", "dep:wasm-bindgen-futures", "dep:wasm-bindgen",