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

WIP: add test for option in message descriptors #125

Closed
wants to merge 1 commit into from

Conversation

tardyp
Copy link
Contributor

@tardyp tardyp commented Jul 16, 2024

reproduction test for #124

#[test]
fn serialize_options() {
let json = to_json(
Aggregate::default().descriptor().descriptor_proto()
Copy link
Owner

@andrewhickman andrewhickman Jul 16, 2024

Choose a reason for hiding this comment

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

descriptor_proto returns a prost_types::MessageDescriptor, which doesn't have support for extension fields/options, so unfortunately there's no way for this to work until tokio-rs/prost#1031 is implemented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure why this is bound to the edition stuff. custom options have been available in protobuf much before edition has been introduced. the nearest issue I see is tokio-rs/prost#754

Copy link
Owner

Choose a reason for hiding this comment

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

you're right, that is not the issue I intended to link. tokio-rs/prost#674 tracks support for extension fields

@tardyp tardyp closed this Sep 4, 2024
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