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

Add iter_messages and iter_enums to Descriptor #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benesch
Copy link

@benesch benesch commented Aug 22, 2021

Hey @dflemstr, we've been carrying these functions around in our fork of this package at @MaterializeInc for a while. Figured it was time to upstream them. Any objection?


These functions make it possible to discover what messages and enums
are available in the descriptor set when you don't know their names
ahead of time.

These functions make it possible to discover what messages and enums
are available in the descriptor set when you don't know their names
ahead of time.

Co-authored-by: Nikhil Benesch <[email protected]>
benesch added a commit to benesch/materialize that referenced this pull request Aug 22, 2021
We forked serde-protobuf library to add one method to improve an error
message.  Empirically we have not been keeping up with maintenance of
our fork, so it's time to ditch the fork.

This commit swaps our fork for the latest official serde-protobuf
release. I left a TODO to restore the error message improvement if the
patch [0] from our fork is accepted upstream.

Notably, this commit removes the last usage of failure from our
codebase.

[0]: dflemstr/serde-protobuf#9
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