From 70a0c211ffcb6df7afd8ce645c43712c1d20d2e7 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:00:49 -0400 Subject: [PATCH] Fix `bevy_window` failing with `serialize` feature (#14298) # Objective - [`flag-frenzy`](https://github.com/TheBevyFlock/flag-frenzy) found an issue where `bevy_window` would fail to build when its `serialize` feature is enabled. - See [here](https://github.com/TheBevyFlock/flag-frenzy/actions/runs/9924187577/job/27415224405) for the specific log. ## Solution - Turns out it was failing because the `bevy_ecs/serialize` feature was not enabled. This error can be fixed by adding the flag as a dependency. ## Testing ```bash cargo check -p bevy_window -F serialize # Or if you're very cool... flag-frenzy --manifest-path path/to/bevy/Cargo.toml --config config -p bevy_window ``` --- crates/bevy_window/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_window/Cargo.toml b/crates/bevy_window/Cargo.toml index acb7d464bd..d7dd583439 100644 --- a/crates/bevy_window/Cargo.toml +++ b/crates/bevy_window/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["bevy"] [features] default = [] -serialize = ["serde", "smol_str/serde"] +serialize = ["serde", "smol_str/serde", "bevy_ecs/serialize"] [dependencies] # bevy