Fix bevy_color not compiling standalone. (#15938)

# Objective

On HEAD, `bevy_color` does not compile on its own with `--all-features`
enabled. This PR fixes that.

## Solution

- Added the `curve` feature on `bevy_math` to `bevy_color`.
- Added the `serialize` feature on `bevy_math` to
`bevy_color/serialize`.

## Testing

- Compiled with `cargo b -p bevy_color --all-features` on HEAD and on
this PR: it fails to compile on HEAD but compiles with this PR.
This commit is contained in:
andriyDev 2024-10-15 16:52:45 -07:00 committed by GitHub
parent a588ceeb49
commit fbb53140e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,9 @@ keywords = ["bevy", "color"]
rust-version = "1.76.0"
[dependencies]
bevy_math = { path = "../bevy_math", version = "0.15.0-dev", default-features = false }
bevy_math = { path = "../bevy_math", version = "0.15.0-dev", default-features = false, features = [
"curve",
] }
bevy_reflect = { path = "../bevy_reflect", version = "0.15.0-dev", features = [
"bevy",
], optional = true }
@ -26,7 +28,7 @@ encase = { version = "0.10", default-features = false }
[features]
default = ["bevy_reflect"]
serialize = ["serde"]
serialize = ["serde", "bevy_math/serialize"]
[lints]
workspace = true