bevy/crates/bevy_color
Zachary Harrold fdd9ffab01
Allow bevy_reflect and wgpu-types features in no_std for bevy_color (#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` |  | ✔️ | |
2025-03-01 00:31:35 +00:00
..
crates/gen_tests Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
docs
src Fixes #17508: bevy_color::Color constructor docs get docs matching underlying constructor (#17601) 2025-01-29 18:21:23 +00:00
Cargo.toml Allow bevy_reflect and wgpu-types features in no_std for bevy_color (#18061) 2025-03-01 00:31:35 +00:00
LICENSE-APACHE Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
LICENSE-MIT Cleanup publish process (#17728) 2025-02-09 17:46:19 +00:00
README.md

Bevy Color

License Crates.io Downloads Docs Discord