-
Notifications
You must be signed in to change notification settings - Fork 22
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
[serialization] Add canonical serialize/deserialize traits + derive macros #7
Conversation
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.
Looks good to me, Now I wonder if there's a reason for keeping DeserializeBytes/SerializeBytes
in the utils crate, as we seem to use this only internally inside the field crate.
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.
Nice
0930658
to
640a1c8
Compare
916a91d
to
72554c4
Compare
…and proc macros to automatically derive implementations for structs and enums
72554c4
to
87d2e30
Compare
Introduces the following traits:
Conveniently, this also comes with proc-macros for deriving these traits for an arbitrary struct/enum (unions are not supported).