Fix building wgpu with --no-default-feautures on web (wasm32-unknown-unknown) (#6946)

* Fix wasm build without features

* silence unused warnings if wgc & webgpu are disabled

* add no-features check for web ci

* add changelog entry
This commit is contained in:
Andreas Reich authored and GitHub committed 2025-01-18 15:05:57 -05:00
1 parent dcdb10348b
commit e2d14c677a
4 files changed
+11

No files matched your search

+3
View File
@@ -254,6 +254,9 @@ jobs:
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --features glsl,spirv
cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-deps --features glsl,spirv
# check with no features
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-default-features
# all features
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --all-features
cargo doc --target ${{ matrix.target }} ${{ matrix.extra-flags }} --no-deps --all-features