From 232a2c862190b831205044d2be06d95cba1306e6 Mon Sep 17 00:00:00 2001 From: Zac Harrold Date: Thu, 27 Feb 2025 10:26:47 +1100 Subject: [PATCH] Allow `bevy_reflect` and `wgpu-types` in `no_std` --- crates/bevy_color/Cargo.toml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/crates/bevy_color/Cargo.toml b/crates/bevy_color/Cargo.toml index b1ab628e3aa46..9b6d7d8cf6b8d 100644 --- a/crates/bevy_color/Cargo.toml +++ b/crates/bevy_color/Cargo.toml @@ -13,9 +13,7 @@ rust-version = "1.85.0" bevy_math = { path = "../bevy_math", version = "0.16.0-dev", default-features = false, features = [ "curve", ] } -bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-dev", features = [ - "bevy", -], optional = true } +bevy_reflect = { path = "../bevy_reflect", version = "0.16.0-dev", default-features = false, optional = true } bytemuck = { version = "1", features = ["derive"] } serde = { version = "1.0", features = [ "derive", @@ -27,13 +25,20 @@ encase = { version = "0.10", default-features = false, optional = true } [features] default = ["std", "bevy_reflect", "encase"] -std = ["alloc", "bevy_math/std", "serde?/std"] +std = [ + "alloc", + "bevy_math/std", + "serde?/std", + "wgpu-types?/std", + "bevy_reflect?/std", +] alloc = ["bevy_math/alloc", "serde?/alloc"] serialize = ["serde", "bevy_math/serialize"] -bevy_reflect = ["dep:bevy_reflect", "std"] -wgpu-types = ["dep:wgpu-types", "std"] +bevy_reflect = ["dep:bevy_reflect"] +wgpu-types = ["dep:wgpu-types"] encase = ["dep:encase", "std"] libm = ["bevy_math/libm"] +critical-section = ["bevy_reflect?/critical-section"] [lints] workspace = true