Skip to content

Commit

Permalink
Allow bevy_reflect and wgpu-types in no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
bushrat011899 committed Feb 26, 2025
1 parent 2f38464 commit 232a2c8
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions crates/bevy_color/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 232a2c8

Please sign in to comment.