Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(build): Add disable_package_emission option to tonic-build #556

Merged
merged 1 commit into from
Feb 12, 2021
Merged

feat(build): Add disable_package_emission option to tonic-build #556

merged 1 commit into from
Feb 12, 2021

Conversation

Protryon
Copy link
Contributor

@Protryon Protryon commented Feb 5, 2021

Motivation

In a project where we don't want to modify prost for empty packages, we need to implement SPIRE workload api which does not use a GRPC package.

Solution

This PR adds a disable_package_emission option to tonic-build that will not emit a prost-provided package on GRPC endpoints. This allows the protofile to include a package declaration to satisfy prost, and be protocol-compatible with a service expecting no package.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants