From 7573b3c765127c72467cb7e892b3596517b2e7b3 Mon Sep 17 00:00:00 2001 From: TheDudeFromCI Date: Mon, 29 Jul 2024 16:34:07 -0700 Subject: [PATCH] Added serialize flag to bevy_math dep of bevy_ui (#14450) # Objective When depending on the `bevy_ui` crate specifically and using the `serialize` feature flag, the compilation fails due to `bevy_math` not having the serialize flag enabled. ## Solution Added the `serialize` flag to the `bevy_math` dependency when using that flag on `bevy_ui`. ## Testing Tested by adding `bevy_math = { version = "0.14", features = ["serialize"] }` on a small Bevy library to ensure compilation was successful. --- crates/bevy_ui/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/Cargo.toml b/crates/bevy_ui/Cargo.toml index 31d45cdd0e..7c6c634026 100644 --- a/crates/bevy_ui/Cargo.toml +++ b/crates/bevy_ui/Cargo.toml @@ -39,7 +39,7 @@ nonmax = "0.5" smallvec = "1.11" [features] -serialize = ["serde", "smallvec/serde"] +serialize = ["serde", "smallvec/serde", "bevy_math/serialize"] [lints]