#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

#616 in Encoding

Download history 67345/week @ 2024-08-02 71232/week @ 2024-08-09 69158/week @ 2024-08-16 86523/week @ 2024-08-23 72276/week @ 2024-08-30 88016/week @ 2024-09-06 68562/week @ 2024-09-13 87744/week @ 2024-09-20 85896/week @ 2024-09-27 66643/week @ 2024-10-04 80456/week @ 2024-10-11 95756/week @ 2024-10-18 79794/week @ 2024-10-25 81680/week @ 2024-11-01 91775/week @ 2024-11-08 113870/week @ 2024-11-15

384,385 downloads per month
Used in 170 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–11MB
~148K SLoC