bufbuild / protocompile

A parsing/linking engine for protobuf; the guts for a pure Go replacement of protoc.
Apache License 2.0
227 stars 18 forks source link

Add wellknownimports package, for providing actual source code for the standard imports #310

Closed jhump closed 4 months ago

jhump commented 4 months ago

This addresses the last bullet mentioned in #309 -- it provides a resolver for source code of the standard imports. It's in a separate package so users that don't import it don't pay any cost of the embedded source files.

This allows the compiler to make use of the extension declarations added to descriptor.proto in v27.0.

jhump commented 4 months ago

ping @emcfarlane