Skip to content

Commit b6ccc2a

Browse files
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
1 parent a58a8bd commit b6ccc2a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/bevy_internal/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ serialize = [
9797
"bevy_color?/serialize",
9898
"bevy_ecs/serialize",
9999
"bevy_image?/serialize",
100-
"bevy_input/serialize",
101-
"bevy_math/serialize",
100+
"bevy_input?/serialize",
101+
"bevy_math?/serialize",
102102
"bevy_scene?/serialize",
103103
"bevy_time/serialize",
104-
"bevy_transform/serialize",
104+
"bevy_transform?/serialize",
105105
"bevy_ui?/serialize",
106106
"bevy_window?/serialize",
107107
"bevy_winit?/serialize",
@@ -317,7 +317,7 @@ critical-section = [
317317
"bevy_app/critical-section",
318318
"bevy_diagnostic/critical-section",
319319
"bevy_ecs/critical-section",
320-
"bevy_input/critical-section",
320+
"bevy_input?/critical-section",
321321
"bevy_input_focus?/critical-section",
322322
"bevy_platform_support/critical-section",
323323
"bevy_reflect/critical-section",
@@ -343,7 +343,7 @@ async_executor = [
343343
"std",
344344
"bevy_tasks/async_executor",
345345
"bevy_ecs/async_executor",
346-
"bevy_transform/async_executor",
346+
"bevy_transform?/async_executor",
347347
]
348348

349349
# Enables use of browser APIs.

0 commit comments

Comments
 (0)