-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Make bevy_scene dependency on serde optional #6030
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
Comments
I've never contributed before, but I would like to give this a shot! |
Would it be a good idea to make custom |
Thanks! For this particular issue I think we can probably do a very scoped change :) This line is the suspicious one: bevy/crates/bevy_scene/Cargo.toml Line 24 in 2b80a3f
Here's the reference page I use when mucking about with dependencies. |
Thank you! I've changed I'm also uncertain because wouldn't the case of this Perhaps I'm just missing something? 😅 |
Oh right! You need to add a serde feature, then add it to the top-level
If the |
I see, thank you for your patience! I will try it out 😄 |
Hi, I've taken a look and it seems like most things could be solved by using The only thing that needs to be handled differently is the I'm thinking that perhaps this implementation and the current Then I could make a "blank" Plugin implementation that does nothing when the Would this be reasonable? |
Yep, that seems basically correct. Feel free to open PRs early (and stick them in draft mode); it's often easier to figure out the exact technical details when there's a change set in front of you :) |
Okay, I'll try opening a PR tomorrow! :) Edit: sorry, I meant on friday |
# Objective Fixes #6030, making ``serde`` optional. ## Solution This was solved by making a ``serialize`` feature that can activate ``serde``, which is now optional. When ``serialize`` is deactivated, the ``Plugin`` implementation for ``ScenePlugin`` does nothing. Co-authored-by: Linus Käll <[email protected]>
# Objective Fixes bevyengine#6030, making ``serde`` optional. ## Solution This was solved by making a ``serialize`` feature that can activate ``serde``, which is now optional. When ``serialize`` is deactivated, the ``Plugin`` implementation for ``ScenePlugin`` does nothing. Co-authored-by: Linus Käll <[email protected]>
# Objective Fixes bevyengine#6030, making ``serde`` optional. ## Solution This was solved by making a ``serialize`` feature that can activate ``serde``, which is now optional. When ``serialize`` is deactivated, the ``Plugin`` implementation for ``ScenePlugin`` does nothing. Co-authored-by: Linus Käll <[email protected]>
# Objective Fixes bevyengine#6030, making ``serde`` optional. ## Solution This was solved by making a ``serialize`` feature that can activate ``serde``, which is now optional. When ``serialize`` is deactivated, the ``Plugin`` implementation for ``ScenePlugin`` does nothing. Co-authored-by: Linus Käll <[email protected]>
In bevy_scene, the dependency to serde is not optional and the code is always enabled... but it would be nice to make it optional. maybe another PR 🙂
Originally posted by @mockersf in #6023 (comment)
The text was updated successfully, but these errors were encountered: