Skip to content

Commit

Permalink
Ensure bevy_utils is included with std feature (#18201)
Browse files Browse the repository at this point in the history
# Objective

- Fixes #18200

## Solution

- Ensure `bevy_utils` is included with `bevy_transform/std`

## Testing

- `cargo build  --no-default-features --features std`

## Notes

Compilation failure was caused by `bevy_transform`'s new parallel
propagation system requiring `bevy_utils/std` when `bevy_transform/std`
was active, but it was left optional. Additionally,
`bevy_transform/async_executor` wasn't being enabled by
`bevy/async_executor`.
  • Loading branch information
bushrat011899 authored Mar 8, 2025
1 parent 64d57fa commit c14733d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion crates/bevy_internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,12 @@ libm = [

# Uses `async-executor` as a task execution backend.
# This backend is incompatible with `no_std` targets.
async_executor = ["std", "bevy_tasks/async_executor", "bevy_ecs/async_executor"]
async_executor = [
"std",
"bevy_tasks/async_executor",
"bevy_ecs/async_executor",
"bevy_transform/async_executor",
]

# Enables use of browser APIs.
# Note this is currently only applicable on `wasm32` architectures.
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bevy_reflect = [

## Uses `async-executor` as a task execution backend.
## This backend is incompatible with `no_std` targets.
async_executor = ["std", "dep:bevy_utils", "bevy_tasks/async_executor"]
async_executor = ["std", "bevy_tasks/async_executor"]

# Platform Compatibility

Expand All @@ -74,7 +74,7 @@ std = [
"bevy_math/std",
"bevy_reflect?/std",
"bevy_tasks/std",
"bevy_utils?/std",
"bevy_utils/std",
"serde?/std",
]

Expand Down

0 comments on commit c14733d

Please sign in to comment.