-
-
Notifications
You must be signed in to change notification settings - Fork 41
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 Specta Implementation for glam
& bevy_ecs
Types based on Serialization Format (serde
)
#164
Comments
Would happily accept a PR, else when I have a few minutes will make the changes. We definitely need to stick to Serde definitions! I was not aware so many crates have custom impls for them. |
I'm on it :) |
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Oct 26, 2023
…plementation
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Oct 26, 2023
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Oct 26, 2023
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Oct 26, 2023
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Oct 26, 2023
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Oct 26, 2023
bennobuilder
added a commit
to bennobuilder/specta
that referenced
this issue
Nov 5, 2023
oscartbeaumont
added a commit
that referenced
this issue
Nov 22, 2023
…ion (#165) * #164 updated glam & bevy_ecs types to match their `serde` implementation * #164 fixed typo * #164 improved error message and removed WorldId (no serde implemented) * #164 fixed test * #164 updated array to tuple * #164 fixed to long tuple for Mat4 and added basic tests * #164 bumped bevy version * avoid string allocate when error not hit * small cleanup --------- Co-authored-by: Oscar Beaumont <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current
specta
implementation forglam
types defines each type according to its original structure. However, this does not align with the serialized format of these types as provided by glam'sserde
implementation. The serialized format represents these types as arrays rather than individual struct fields.For instance,
glam::DVec2
is represented as a struct with fieldsx
andy
in the currentspecta
implementation, but its serialized form is an array[x, y]
.Proposed Solution
Update the
specta
implementations to match the serialization format of glam'sserde
implementation. This will ensure consistency and correctness when working with these types in serialized form. The updated implementation should represent the serialized format as arrays:Expected implementation for wrongly implemented
glam
types:Based on
The text was updated successfully, but these errors were encountered: