Skip to content

MVP no_std for wgpu #7747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 10, 2025
Merged

MVP no_std for wgpu #7747

merged 12 commits into from
Jun 10, 2025

Conversation

bushrat011899
Copy link
Contributor

@bushrat011899 bushrat011899 commented Jun 3, 2025

Connections

Description

  • Adds parking_lot and std features to wgpu, allowing for compilation on wasm32v1-none with said features disabled.
  • Added an internal Mutex wrapper to handle selecting a non-parking_lot implementation.
  • Gated StagingBelt behind std as it requires access to a channel implementation (std::sync::mpsc) to function. This could be replaced with ConcurrentQueue but that will require adding a new dependency to wgpu (although it is already in the lockfile as a dev-dependency)
  • Added wgpu to the no_std CI task

Testing

  • CI

Squash or Rebase?

Squash

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@bushrat011899 bushrat011899 requested a review from a team as a code owner June 3, 2025 01:42
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, a few requests regarding documentation

@Wumpf Wumpf merged commit e72c4d8 into gfx-rs:trunk Jun 10, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants