Skip to content

Commit 1ffa825

Browse files
authored
enable x11 by default in bevy_winit (#18475)
# Objective - building bevy_winit on linux fails with ``` error: The platform you're compiling for is not supported by winit --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.30.9/src/platform_impl/mod.rs:78:1 | 78 | compile_error!("The platform you're compiling for is not supported by winit"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` - this blocks publishing Bevy from linux during the verification step ## Solution - Enable `x11` by default when building bevy_winit, and disable default features of bevy_winit in bevy_internal - This doesn't change anything when depending on Bevy
1 parent f6578ad commit 1ffa825

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/bevy_internal/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ bevy_ui = { path = "../bevy_ui", optional = true, version = "0.16.0-dev" }
429429
bevy_window = { path = "../bevy_window", optional = true, version = "0.16.0-dev", default-features = false, features = [
430430
"bevy_reflect",
431431
] }
432-
bevy_winit = { path = "../bevy_winit", optional = true, version = "0.16.0-dev" }
432+
bevy_winit = { path = "../bevy_winit", optional = true, version = "0.16.0-dev", default-features = false }
433433

434434
[lints]
435435
workspace = true

crates/bevy_winit/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ license = "MIT OR Apache-2.0"
99
keywords = ["bevy"]
1010

1111
[features]
12+
default = ["x11"]
1213
trace = []
1314
wayland = ["winit/wayland", "winit/wayland-csd-adwaita"]
1415
x11 = ["winit/x11"]

0 commit comments

Comments
 (0)