-
Notifications
You must be signed in to change notification settings - Fork 25
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
CHIA-1169: Serde support for common types #668
base: main
Are you sure you want to change the base?
Conversation
#[derive(Default, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] | ||
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] | ||
pub struct Bytes(Vec<u8>); | ||
|
||
#[cfg(feature = "serde")] |
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.
I'm not a fan of duplicating the definition of Bytes
and BytesImpl
. It might be better to get rid of serde_with
entirely and just use the manual implementation like I did for PublicKey
@@ -49,6 +49,7 @@ cast_possible_wrap = "allow" | |||
cast_lossless = "allow" | |||
similar_names = "allow" | |||
implicit_hasher = "allow" | |||
unsafe_derive_deserialize = "allow" |
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.
Not sure why it was giving this warning when deriving on types like Coin
. Maybe the Python bindings are tripping it up
Pull Request Test Coverage Report for Build 10429084212Details
💛 - Coveralls |
No description provided.