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

srcinfo package and protoc-gen-gosrcinfo #498

Merged
merged 4 commits into from
Feb 15, 2022
Merged

srcinfo package and protoc-gen-gosrcinfo #498

merged 4 commits into from
Feb 15, 2022

Conversation

jhump
Copy link
Owner

@jhump jhump commented Feb 15, 2022

This adds protoc-gen-gosrcinfo, a protoc plugin that allows file descriptors embedded in the Go program to include source code info. The protoc-gen-go plugin strips this info away, to reduce binary size and runtime memory footprint. But that means that user agents that use the gRPC server reflection service cannot access comments.

In addition to the protoc plugin, this adds a package to support the runtime aspect as querying source code info for file descriptors, as well as an alternative implementation of server reflection that uses the runtime package in order to provide descriptors to clients that include source code info.

@jhump jhump merged commit 604043b into master Feb 15, 2022
@jhump jhump deleted the jh/comments branch February 15, 2022 18:39
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.

None yet

1 participant