Skip to content

fix: enable rio-window platform features in sugarloaf dev-deps#1633

Open
nikicat wants to merge 1 commit into
raphamorim:mainfrom
nikicat:fix/sugarloaf-dev-deps
Open

fix: enable rio-window platform features in sugarloaf dev-deps#1633
nikicat wants to merge 1 commit into
raphamorim:mainfrom
nikicat:fix/sugarloaf-dev-deps

Conversation

@nikicat

@nikicat nikicat commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

cargo test -p sugarloaf (and any sugarloaf example importing rio_window::...)
failed to compile on Linux with rio-window's "platform not supported by winit"
compile_error!.

Details

The workspace declares rio-window with default-features = false, so sugarloaf's
dev-dependency inherited no platform features and platform_impl/mod.rs tripped
its compile_error!. rioterm avoids this by re-enabling x11/wayland through its
own feature flags; sugarloaf had no equivalent. This enables the rio-window
x11/wayland platform features in sugarloaf's dev-deps.

Testing

cargo test -p sugarloaf now compiles and runs on Linux.

🤖 Generated with Claude Code

The workspace declares rio-window with `default-features = false`,
so sugarloaf's dev-dep inherited no platform features and
rio-window's `platform_impl/mod.rs` triggered its
"platform not supported by winit" `compile_error!` whenever
`cargo test -p sugarloaf` pulled it in on Linux. rioterm avoids
this by re-enabling x11/wayland through its own feature flags;
sugarloaf had no equivalent, blocking `cargo test -p sugarloaf`
and any sugarloaf examples that import `rio_window::...`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
(cherry picked from commit 38e73b0)
@nikicat nikicat force-pushed the fix/sugarloaf-dev-deps branch from f295fe9 to b99e9fd Compare June 5, 2026 10:26
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.

1 participant