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

Support for explicit field numbers and skipping unknown fields during deserialization #637

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Jan 14, 2024

Resolves #575
/claim #575

* A per-encooding/decoding cache for field mappings. No need for thread safety as a single encoding/decoding
* is sequential.
*/
class FieldMappingCache {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe worth making the constructor private so you have to go through FieldMapping?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Too much Rust coding, I though it's private because there is no pub :D

@jdegoes jdegoes enabled auto-merge (squash) January 15, 2024 10:47
@jdegoes jdegoes merged commit be43667 into zio:main Jan 15, 2024
25 checks passed
@vigoo vigoo deleted the protobuf-field-number branch January 15, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for custom and reserved field numbers in Protobuf codec
2 participants