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

Implement read support for proto2 extensions #163

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Implement read support for proto2 extensions #163

merged 1 commit into from
Feb 12, 2024

Conversation

goffrie
Copy link
Contributor

@goffrie goffrie commented Feb 12, 2024

Adds new codegen for messages with extension ranges defined,
and generates extension fields as constants.

The syntax is m.get_extension(extensions::MY_EXTENSION),
which can return Err if parsing fails. This is not super ergonomic.

Extensions are read-only for now.

@goffrie goffrie changed the title Implement read support proto2 extensions Implement read support for proto2 extensions Feb 12, 2024
@goffrie goffrie merged commit fbc1713 into main Feb 12, 2024
23 checks passed
@goffrie goffrie deleted the extensions branch February 12, 2024 19:47
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.

1 participant