Skip to content

Commit b99e9fd

Browse files
nikicatclaude
andcommitted
fix: enable rio-window platform features in sugarloaf dev-deps
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)
1 parent 330ed70 commit b99e9fd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

sugarloaf/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,13 @@ ash = "0.38.0"
121121
# higher-level `windows` crate isn't in Debian at all.
122122

123123
[dev-dependencies]
124-
rio-window = { workspace = true }
124+
# x11/wayland enable the platform cfg aliases rio-window's build.rs
125+
# sets — without one of them rio-window's platform_impl emits a
126+
# compile_error on Linux. The workspace declaration sets
127+
# default-features = false, so we re-enable them explicitly here.
128+
# Transitive x11/wayland deps are target.'cfg(free_unix)'-gated, so
129+
# this is a no-op on macOS/Windows.
130+
rio-window = { workspace = true, features = ["x11", "wayland", "wayland-dlopen"] }
125131
png = "0.17.16"
126132
deflate = "1.0.0"
127133
criterion = { workspace = true }

0 commit comments

Comments
 (0)