Skip to content
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(rpc): Move away from serde in RPC DTO's (in favor of our own [De]SerializeForVersion) #2392

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

t00ts
Copy link
Contributor

@t00ts t00ts commented Nov 20, 2024

This PR is part of #2220

Summary

This PR removes mostly all serde::Serialize and serde::Deserialize present in our DTO structs, replacing them with ad-hoc implementations of SerializeForVersion and DeserializeForVersion.

Note: For those types that don't necessarily need Deserialize capabilities other than in cfg(test), I've tried to keep the serde attributes for completeness, although most tests pass without them.

@t00ts t00ts requested a review from a team as a code owner November 20, 2024 11:16
@t00ts t00ts marked this pull request as draft November 20, 2024 11:16
@t00ts t00ts removed the request for review from a team November 20, 2024 11:26
@t00ts t00ts force-pushed the t00ts/rpc-remove-serde-derive branch 7 times, most recently from 180ed9c to 68b84ba Compare December 18, 2024 14:43
@t00ts t00ts marked this pull request as ready for review December 18, 2024 14:47
@t00ts t00ts requested a review from a team December 18, 2024 14:52
Copy link
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % a few small nits.

…in favor of our `SerializeForVersion` and `DeserializeForVersion` traits
@t00ts t00ts force-pushed the t00ts/rpc-remove-serde-derive branch from 68b84ba to ef72a91 Compare December 20, 2024 11:03
@t00ts t00ts merged commit 2097a13 into main Dec 23, 2024
8 checks passed
@t00ts t00ts deleted the t00ts/rpc-remove-serde-derive branch December 23, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants