Skip to content

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

Merged
LucioFranco merged 1 commit intohyperium:masterfrom
Protryon:master
Feb 12, 2021
Merged

feat(build): Add disable_package_emission option to tonic-build#556
LucioFranco merged 1 commit intohyperium:masterfrom
Protryon:master

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.

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