Skip to content

web-sys doesn't need to be pinned any more #12246

@xStrom

Description

@xStrom

The bevy_render package has a strict pin on web-sys:

# web-sys doesn't follow semver for the WebGPU APIs as they are unstable
# Make sure that WebGPU builds work when changing this!
web-sys = { version = "=0.3.67", features = [

This is because wgpu depends on unstable web-sys features which don't follow SemVer.

However things have changed, wgpu has now vendored those bindings. This was also backported and released as v0.19.3.

This means that pinning web-sys is no longer required. The following can be done:

  • Update the wgpu requirement in bevy_render from 0.19.1 to 0.19.3.
  • Remove the web-sys pin.

Doing so will unlock the ability for unrelated projects that have bevy_render in their workspace to finally update their web-sys.

Also, an additional benefit of the aforementioned wgpu change is that wgpu no longer requires you to have --cfg=web_sys_unstable_apis in your RUSTFLAGS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-DependenciesA change to the crates that Bevy depends on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions