Skip to content

wayland: Update sctk to 0.21, and bump MSRV to 1.86 - #4567

Merged
kchibisov merged 2 commits into
rust-windowing:masterfrom
ids1024:dispatch2
Jul 27, 2026
Merged

wayland: Update sctk to 0.21, and bump MSRV to 1.86#4567
kchibisov merged 2 commits into
rust-windowing:masterfrom
ids1024:dispatch2

Conversation

@ids1024

@ids1024 ids1024 commented May 14, 2026

Copy link
Copy Markdown
Member

Prototyping API change in upcoming wayland-rs API release.

Smithay/client-toolkit#519

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

@kchibisov

Copy link
Copy Markdown
Member

@ids1024 what's the status of this given that sctk-0.21 is released and also lays some ground for the wayland-rs change?

We may bump sctk to 0.21 for the next release of winit, I guess?

@ids1024

ids1024 commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

Thanks for reminding me. Once PolyMeilex/sctk-adwaita#92 is released, we can update winit to use the latest sctk changes. I'll split off the change for the upcoming wayland-rs release here.

CI is failing since sctk requires Rust 1.86, while it currently targets 1.85. I assume we can just bump that since it would clearly be consistent with winit's MSRV policy.

@ids1024
ids1024 force-pushed the dispatch2 branch 2 times, most recently from e688a77 to e2738bc Compare July 23, 2026 16:08
ids1024 added 2 commits July 23, 2026 13:57
This uses `Dispatch2`, which will be how `Dispatch` is defined in the
upcoming wayland-rs release.
@ids1024 ids1024 changed the title WIP: wayland: sctk with Dispatch2 wayland: Update sctk to 0.21, and bump MSRV to 1.86 Jul 23, 2026
@ids1024
ids1024 marked this pull request as ready for review July 23, 2026 21:02
@ids1024
ids1024 requested a review from kchibisov as a code owner July 23, 2026 21:02
@ids1024

ids1024 commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

May as well merge this part into winit now.

The change to use user-data types in sctk is potentially the most error prone part of this and the wayland-rs update, since .data() has no way of checking the right type is used at compile time. I think I've updated that correctly. Otherwise the changes are fairly straightforward.

@kchibisov
kchibisov merged commit a9e7bef into rust-windowing:master Jul 27, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants