Arwalk / zig-protobuf

a protobuf 3 implementation for zig.
MIT License
188 stars 20 forks source link

mark as "pub const" public imports #21

Closed menduz closed 11 months ago

menduz commented 11 months ago

If you are compiling the protocol buffers as a zig package, it may use only one entry point.

This change leverages import public "somefile.proto" to expose pub const somefile = @include("somefile.pb.zig); in the root file of the package. Effectively enabling access to all the user-defined sub-packages