-
Notifications
You must be signed in to change notification settings - Fork 237
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
feat(alloy-rpc-types-eth): Optional serde #1276
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.
this seems fine, since all tests basically use serde we could derive serde for tests as well, but this would now require changing all attributes, so I'm fine with this.
would appreciate one additional sanity review @klkvr @DaniPopes
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.
lgtm! wondering if need for this means we are missing something in consensus types?
had a feeling that rpc-types were supposed to always implement serde as they should only be used to communicate with RPC, so curious to learn more about usecases needing this change
actually, @refcell is this a size related issue? because this will still pull in serde via alloy-serde I believe |
Good point, it was to decrease size and generally make available lighter types. Wonder if I can place alloy-serde behind the feature flag as well |
should be possible to make it optional |
actually, let me take a look at the engine type crate |
ref #1280 |
81508e1
to
0f1b946
Compare
* feat: optional serde * feat: optional serde * fix: tests * fix: enable serde for alloy-rpc-types-trace * fix: non-attr serde
Description
Downstream crates would like to use types from
alloy-rpc-types-eth
without the need forserde
support. This PR places serialization for core eth types behind theserde
feature flag that is enabled-by-default.