-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Changes from all commits
05c88d2
853d23f
f2c0fc1
da8c7f3
03f6467
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,18 +14,24 @@ rust-version = "1.67.0" | |
|
||
[[example]] | ||
name = "simple" | ||
required-features = ["inspect"] | ||
|
||
[[example]] | ||
name = "multiple" | ||
required-features = ["inspect"] | ||
|
||
[features] | ||
default = ["serialize"] | ||
inspect = ["bevy-inspector-egui"] | ||
serialize = ["serde"] | ||
default = ["serde"] | ||
serde = ["dep:serde"] | ||
|
||
[dependencies] | ||
bevy = { version = "0.11" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here please |
||
bevy-inspector-egui = { version = "0.19", optional = true } | ||
bevy = { version = "0.11", default-features = false, features = [ | ||
"bevy_render", | ||
"bevy_ui" | ||
] } | ||
serde = { version = "^1", optional = true } | ||
|
||
[build-dependencies] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
serde = { version = "^1", features = ["derive"], optional = true } | ||
|
||
[dev-dependencies] | ||
bevy = "0.11" | ||
bevy-inspector-egui = "0.20" |
There was a problem hiding this comment.
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.