Skip to content

Conversation

bushrat011899
Copy link
Contributor

Objective

Solution

  • Made web-time a wasm32-only dependency.
  • Moved time-related exports to its own module for clarity.
  • Feature-gated allocator requirements for hashbrown behind alloc.
  • Enabled compile-time RNG for ahash (runtime RNG will preferentially used in std environments)
  • Made thread_local optional by feature-gating the Parallel type.

Testing

  • Ran CI locally.
  • cargo build -p bevy_utils --target "x86_64-unknown-none" --no-default-features

`thread_local`, `getrandom`, and `web-time` were being included even in `no_std` configurations. Additionally, `hashbrown` had extra features enabled that should've been gated.
@bushrat011899 bushrat011899 added D-Trivial Nice and easy! A great choice to get started with Bevy A-Utils Utility functions and types P-Compile-Failure A failure to compile Bevy apps S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 27, 2024
@bushrat011899 bushrat011899 added the X-Uncontroversial This work is generally agreed upon label Sep 27, 2024
@alice-i-cecile alice-i-cecile added this to the 0.15 milestone Sep 29, 2024
@bushrat011899 bushrat011899 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 4, 2024
@mockersf mockersf added this pull request to the merge queue Oct 4, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 4, 2024
# Objective

- Contributes to #15460

## Solution

- Made `web-time` a `wasm32`-only dependency.
- Moved time-related exports to its own module for clarity.
- Feature-gated allocator requirements for `hashbrown` behind `alloc`.
- Enabled compile-time RNG for `ahash` (runtime RNG will preferentially
used in `std` environments)
- Made `thread_local` optional by feature-gating the `Parallel` type.

## Testing

- Ran CI locally.
- `cargo build -p bevy_utils --target "x86_64-unknown-none"
--no-default-features`
Merged via the queue into bevyengine:main with commit 53adcd7 Oct 4, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Utils Utility functions and types D-Trivial Nice and easy! A great choice to get started with Bevy P-Compile-Failure A failure to compile Bevy apps S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it X-Uncontroversial This work is generally agreed upon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants