-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Merged by Bors] - bevy_reflect: Improve serialization format even more #5723
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
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
4230acd
Simplified reflection ser/de
MrGVSV 32a83b9
Cleanup comment
MrGVSV e8bdefb
Updated example scene file
MrGVSV 3dd5d0e
Fix clippy
MrGVSV f794ad2
Fix glam tests
MrGVSV f843355
Fixed tests
MrGVSV 762fe4f
Remove TODO comment
MrGVSV 31135e6
Fix test for CI
MrGVSV 5e3ba1a
Fix CI test for glam serialization
MrGVSV 8d19407
Replace deserialize_any with deserialize_map
MrGVSV 83829eb
Remove unnecessary paths
MrGVSV 54aca19
Fix PrettyConfig for tests
MrGVSV 14105da
Rename ReflectDeserializer -> UntypedReflectDeserializer
MrGVSV 6966a58
Add constructor to TypedReflectDeserializer
MrGVSV bafda23
Added test for simple value types
MrGVSV 93b9679
Reorganize Visitor impls
MrGVSV d133167
Formatting
MrGVSV a44df72
Revert "Replace deserialize_any with deserialize_map"
MrGVSV 88668ae
Remove "type" and "value" keys
MrGVSV 5b88e74
Add nested enums to tests
MrGVSV bcb7a0a
Fix scene example
MrGVSV 5d2c99e
Add more complex Option value to tests
MrGVSV 733b580
Fix doc comment
MrGVSV db1227e
Apply review comment
MrGVSV dd9b319
Improved reflect serialization v2
MrGVSV 94baee8
Improve error message for unknown fields on struct-likes
MrGVSV cb37f2e
Require 'static on all type info
MrGVSV 98458ba
Improve error message
MrGVSV ca68a37
Update scene file
MrGVSV a2b6e2e
Allow Dynamic types to be serialized again
MrGVSV 43fb3ab
Formatting
MrGVSV df99b96
Support Option types
MrGVSV 509cb9f
Fix clippy errors
MrGVSV 61a742b
Fix glam tests
MrGVSV 070e509
Remove unnecessary Into
MrGVSV 320d9e4
Fix getting registration for type twice
MrGVSV 1d34ea5
Added Enum::variant_index
MrGVSV 265cc30
Remove duplicate field_names/variant_names fields
MrGVSV 6430af4
Simplify ExpectedValues struct
MrGVSV fe2ee1c
Fix doc error
MrGVSV 8f6ed32
Pass in TypeRegistration to cut out redundant lookup
cart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Storing the static "short" type name in EnumInfo/StructInfo might be (and maybe should be) redundant with efforts like #5805. We might want to split that pr's impl into:
That being said, this seems fine for now.
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.
Ooh that's a good thought for #5805 actually. But yeah when that lands we can probably make these constructors take
T: Reflect + TypePath
instead.