Skip to content
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

Improve serde feature #12

Closed
wants to merge 5 commits into from

Conversation

johanhelsing
Copy link
Contributor

Depends on #11

bevy-inspector-egui now works perfectly fine through Reflect, so no need
to also derive inspector options when we don't use any of its
annotations.
No need to force dependents to have the feature
Copy link
Owner

@SergioRibera SergioRibera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea of renaming the feature seems to me a very good idea, indeed it is something I would like, but please check my comments


[features]
default = ["serialize"]
inspect = ["bevy-inspector-egui"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try not to modify the rest of the code, keep this feature so that there are no conflicts with the other PR's.


[dependencies]
bevy = { version = "0.11" }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here please

] }
serde = { version = "^1", optional = true }

[build-dependencies]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I think the idea is great, I don't think it should go as a build dependency, because sometimes someone might need it in production or in some other way, so I think it should be kept as a feature base

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they need the derive feature, they could just add it themselves? Why should we force it on them?

@johanhelsing
Copy link
Contributor Author

I've kept the prs in serial because they all conflict with one another. My plan was that you could merge the first one first, then i can rebase and you'll get a clean diff (or just look at the individual commits)

@johanhelsing
Copy link
Contributor Author

(see depends on comments)

@SergioRibera
Copy link
Owner

I've kept the prs in serial because they all conflict with one another. My plan was that you could merge the first one first, then i can rebase and you'll get a clean diff (or just look at the individual commits)

I'm fine with that, however, I would like you to take into account the inspect

@SergioRibera
Copy link
Owner

Solved in #13

Thanks for your contribution 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants