From 398350906c0d26e76fe6589b1f96938c447b2227 Mon Sep 17 00:00:00 2001 From: Zachary Harrold Date: Tue, 25 Mar 2025 19:20:51 +1100 Subject: [PATCH] Fix `bevy_math/transform/input` Improper Inclusion (#18526) # Objective Enabling `serialize`, `critical-section`, or `async-executor` would improperly enable `bevy_math`, `bevy_input`, and/or `bevy_transform`. This was caused by those crates previously being required but are now optional (gated behind `std` and/or `libm`). ## Solution - Added `?` to features not intended to enable those crates ## Testing - CI --- crates/bevy_internal/Cargo.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bevy_internal/Cargo.toml b/crates/bevy_internal/Cargo.toml index b8fc7e7336..3640524e88 100644 --- a/crates/bevy_internal/Cargo.toml +++ b/crates/bevy_internal/Cargo.toml @@ -95,11 +95,11 @@ serialize = [ "bevy_color?/serialize", "bevy_ecs/serialize", "bevy_image?/serialize", - "bevy_input/serialize", - "bevy_math/serialize", + "bevy_input?/serialize", + "bevy_math?/serialize", "bevy_scene?/serialize", "bevy_time/serialize", - "bevy_transform/serialize", + "bevy_transform?/serialize", "bevy_ui?/serialize", "bevy_window?/serialize", "bevy_winit?/serialize", @@ -312,7 +312,7 @@ critical-section = [ "bevy_app/critical-section", "bevy_diagnostic/critical-section", "bevy_ecs/critical-section", - "bevy_input/critical-section", + "bevy_input?/critical-section", "bevy_input_focus?/critical-section", "bevy_platform_support/critical-section", "bevy_reflect/critical-section", @@ -338,7 +338,7 @@ async_executor = [ "std", "bevy_tasks/async_executor", "bevy_ecs/async_executor", - "bevy_transform/async_executor", + "bevy_transform?/async_executor", ] # Enables use of browser APIs.