Skip to content

Commit c4ea477

Browse files
BD103mockersf
authored andcommitted
Fix bevy_winit not building with serialize feature (#14469)
# Objective - `bevy_winit` fails to build with just the `serialize` feature. - Caught by [`flag-frenzy`](https://github.com/TheBevyFlock/flag-frenzy) in [this run](https://github.com/TheBevyFlock/flag-frenzy/actions/runs/10087486444/job/27891723948), using the new, nuanced configuration system! ## Solution - It was failing because `bevy_winit` did not pass the `serialize` flag to two of its dependencies: `bevy_input` and `bevy_window`. - To fix this, add these crates to the feature flag. ## Testing ```bash # On Linux, you must also specify a backend: `x11` or `wayland`. # You can do this with `-F serialize,x11`, etc. cargo check -p bevy_winit --no-default-features -F serialize ```
1 parent 9daf16b commit c4ea477

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/bevy_winit/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trace = []
1313
wayland = ["winit/wayland", "winit/wayland-csd-adwaita"]
1414
x11 = ["winit/x11"]
1515
accesskit_unix = ["accesskit_winit/accesskit_unix", "accesskit_winit/async-io"]
16-
serialize = ["serde"]
16+
serialize = ["serde", "bevy_input/serialize", "bevy_window/serialize"]
1717

1818
[dependencies]
1919
# bevy
@@ -52,7 +52,6 @@ wasm-bindgen = { version = "0.2" }
5252
web-sys = "0.3"
5353
crossbeam-channel = "0.5"
5454

55-
5655
[lints]
5756
workspace = true
5857

0 commit comments

Comments
 (0)