#protobuf #proto-file #serialization #file-descriptor #descriptor-set #protoc #buffer

bin+lib protobuf-parse2

Parse .proto files. Files are parsed into a protobuf::descriptor::FileDescriptorSet object using either: pure rust parser (no dependencies) protoc binary (more reliable and compatible with Google’s implementation)

4 releases

4.0.0-alpha.4 Nov 3, 2023
4.0.0-alpha.3 Apr 7, 2023
4.0.0-alpha.2 Aug 23, 2022

#932 in Encoding

Download history 166/week @ 2024-07-20 260/week @ 2024-07-27 228/week @ 2024-08-03 175/week @ 2024-08-10 180/week @ 2024-08-17 236/week @ 2024-08-24 131/week @ 2024-08-31 93/week @ 2024-09-07 155/week @ 2024-09-14 184/week @ 2024-09-21 119/week @ 2024-09-28 92/week @ 2024-10-05 141/week @ 2024-10-12 171/week @ 2024-10-19 235/week @ 2024-10-26 240/week @ 2024-11-02

810 downloads per month
Used in 8 crates (2 directly)

MIT license

1.5MB
34K SLoC

Parse .proto files

Parse .proto file definitions, not the protobuf text format serialization.

Files can be parsed using pure Rust parser (mod pure) or using the protoc command (mod protoc).

This crate is not meant to be used directly, but rather through the protobuf-codegen crate. If you think this crate might be useful to you, please consider creating an issue, until that this crate is considered to have no stable API.


lib.rs:

Parse .proto files

Parse .proto file definitions, not the protobuf text format serialization.

Files can be parsed using pure Rust parser (mod pure) or using the protoc command (mod protoc).

This crate is not meant to be used directly, but rather through the protobuf-codegen crate. If you think this crate might be useful to you, please consider creating an issue, until that this crate is considered to have no stable API.

Dependencies

~3–12MB
~149K SLoC