-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update serialize flag for bevy_ecs #13740
Update serialize flag for bevy_ecs #13740
Conversation
Because features are additive, you can actually get this by pulling a direct dependency on |
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
CI seems very confused about your PR: I don't understand either the failures or the warning about missing examples. |
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
@alice-i-cecile should be good now :) |
# Objective There were some issues with the `serialize` feature: - `bevy_app` had a `serialize` feature and a dependency on `serde` even there is no usage of serde at all inside `bevy_app` - the `bevy_app/serialize` feature enabled `bevy_ecs/serde`, which is strange - `bevy_internal/serialize` did not enable `bevy_app/serialize` so there was no way of serializing an Entity in bevy 0.14 ## Solution - Remove `serde` and `bevy_app/serialize` - Add a `serialize` flag on `bevy_ecs` that enables `serde` - ` bevy_internal/serialize` now enables `bevy_ecs/serialize`
Just tested this with leafwing-input-manager and rc.4. The bevy_ecs serde flag hack now causes an error. Removing it seems to fix the build error. |
Objective
There were some issues with the
serialize
feature:bevy_app
had aserialize
feature and a dependency onserde
even there is no usage of serde at all insidebevy_app
bevy_app/serialize
feature enabledbevy_ecs/serde
, which is strangebevy_internal/serialize
did not enablebevy_app/serialize
so there was no way of serializing an Entity in bevy 0.14Solution
serde
andbevy_app/serialize
serialize
flag onbevy_ecs
that enablesserde
bevy_internal/serialize
now enablesbevy_ecs/serialize