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

build protobuf-parse

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)

25 releases (12 stable)

3.7.1 Oct 15, 2024
3.5.1 Aug 19, 2024
3.5.0 Jun 26, 2024
3.4.0 Feb 26, 2024
3.0.0-alpha.2 Nov 1, 2021

#607 in Encoding

Download history 72440/week @ 2024-08-17 87645/week @ 2024-08-24 73200/week @ 2024-08-31 83538/week @ 2024-09-07 74755/week @ 2024-09-14 80606/week @ 2024-09-21 84703/week @ 2024-09-28 68814/week @ 2024-10-05 88188/week @ 2024-10-12 90530/week @ 2024-10-19 79782/week @ 2024-10-26 82149/week @ 2024-11-02 97979/week @ 2024-11-09 108283/week @ 2024-11-16 69273/week @ 2024-11-23 97984/week @ 2024-11-30

389,993 downloads per month
Used in 173 crates (16 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