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
This commit is contained in:
Zachary Harrold 2025-03-25 19:20:51 +11:00 committed by GitHub
parent a58a8bde2b
commit b6ccc2a2a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,11 +97,11 @@ serialize = [
"bevy_color?/serialize", "bevy_color?/serialize",
"bevy_ecs/serialize", "bevy_ecs/serialize",
"bevy_image?/serialize", "bevy_image?/serialize",
"bevy_input/serialize", "bevy_input?/serialize",
"bevy_math/serialize", "bevy_math?/serialize",
"bevy_scene?/serialize", "bevy_scene?/serialize",
"bevy_time/serialize", "bevy_time/serialize",
"bevy_transform/serialize", "bevy_transform?/serialize",
"bevy_ui?/serialize", "bevy_ui?/serialize",
"bevy_window?/serialize", "bevy_window?/serialize",
"bevy_winit?/serialize", "bevy_winit?/serialize",
@ -317,7 +317,7 @@ critical-section = [
"bevy_app/critical-section", "bevy_app/critical-section",
"bevy_diagnostic/critical-section", "bevy_diagnostic/critical-section",
"bevy_ecs/critical-section", "bevy_ecs/critical-section",
"bevy_input/critical-section", "bevy_input?/critical-section",
"bevy_input_focus?/critical-section", "bevy_input_focus?/critical-section",
"bevy_platform_support/critical-section", "bevy_platform_support/critical-section",
"bevy_reflect/critical-section", "bevy_reflect/critical-section",
@ -343,7 +343,7 @@ async_executor = [
"std", "std",
"bevy_tasks/async_executor", "bevy_tasks/async_executor",
"bevy_ecs/async_executor", "bevy_ecs/async_executor",
"bevy_transform/async_executor", "bevy_transform?/async_executor",
] ]
# Enables use of browser APIs. # Enables use of browser APIs.