Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
bevy_reflect
and wgpu-types
features in no_std
for `bevy_…
…color` (bevyengine#18061) # Objective - Improve feature parity in `no_std` for `bevy_color` ## Solution - Allowed `bevy_reflect` in `no_std` now that it has full support - Allowed `wgpu-types` in `no_std` now version 24 has full support - Added `critical-section` feature to make standalone usage in `no_std` easier ## Testing - `cargo check -p bevy_color --no-default-features --features libm,bevy_reflect,critical-section,serialize,alloc,wgpu-types --target thumbv6m-none-eabi` --- ## Notes With these changes, `bevy_color`'s feature support looks like this: | Feature | `no_std` (Before) | `no_std` (After) | Notes | | - | - | - | - | | `default` | ❌ | ❌ | | | `std` | ❌ | ❌ | | | `alloc` | ✔️ | ✔️ | | | `serialize` | ✔️ | ✔️ | | | `bevy_reflect` | ❌ | ✔️ | | | `wgpu-types` | ❌ | ✔️ | | | `encase` | ❌ | ❌ | | | `libm` | ✔️ | ✔️ | | | `critical-section` | ➖ | ✔️ | |
- Loading branch information