#protobuf #serialization #protocol-buffers #parse #proto #parser #protoc

bin+lib 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)

19 releases (6 stable)

3.2.0 Sep 26, 2022
3.1.0 Jun 22, 2022
3.0.3 May 31, 2022
3.0.0-alpha.12 Apr 30, 2022
3.0.0-alpha.2 Nov 1, 2021

#146 in Encoding

Download history 18185/week @ 2022-10-17 16571/week @ 2022-10-24 16299/week @ 2022-10-31 19071/week @ 2022-11-07 15872/week @ 2022-11-14 12689/week @ 2022-11-21 25347/week @ 2022-11-28 18522/week @ 2022-12-05 16680/week @ 2022-12-12 10072/week @ 2022-12-19 5629/week @ 2022-12-26 12943/week @ 2023-01-02 19157/week @ 2023-01-09 14814/week @ 2023-01-16 18565/week @ 2023-01-23 20050/week @ 2023-01-30

73,152 downloads per month
Used in 30 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

~1–1.7MB
~33K SLoC