Skip to content

RFC: Could winit 0.27 optionally support raw_window_handle 0.4 (for compatibility with wgpu 0.13) perhaps? #2415

@rib

Description

@rib

The recent introduction of the raw_window_handle 0.5 crate dependency has ended up blocking some projects from being able to update to winit 0.27 while they need to wait for it to permeate through other crates first (e.g. waiting for a wgpu 0.14 release which is estimated to happen around the end of September, ref: gfx-rs/wgpu#2918)

For reference, here is an Egui PR that looked at upgrading to Winit 0.27: emilk/egui#1877 which is blocked on wgpu 0.14.

Similarly a PR for Bevy: bevyengine/bevy#5347 that's also blocked on wgpu 0.14 (though the timing looks reasonable here because they only just released Bevy 0.8 anyway, so waiting for wgpu 0.14 isn't a huge deal)

More generally; considering how central wgpu is within the Rust ecosystem I wonder if Winit could strive to ensure, where possible, that new releases remain compatible with the most recent stable release of wgpu.

As it is I guess there will be quite some lag before developers really start using Winit 0.27 which might also mean that potential issues with a new release may not get discovered until quite late.

Maybe future changes similar to this could be phased in over two releases to avoid having to wait a full release cycle for crates like wgpu before a new version of winit can be adopted.

In this case I suppose it was also just unfortunate timing that wgpu was released so recently, just before winit 0.27 was released.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions