#protobuf #serialization #proto #pure #protoc #parsed #descriptor

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)

21 releases (8 stable)

3.4.0 Feb 26, 2024
3.3.0 Oct 2, 2023
3.2.0 Sep 26, 2022
3.1.0 Jun 22, 2022
3.0.0-alpha.2 Nov 1, 2021

#1194 in Encoding

Download history 27081/week @ 2023-12-24 42779/week @ 2023-12-31 48267/week @ 2024-01-07 48603/week @ 2024-01-14 57265/week @ 2024-01-21 62143/week @ 2024-01-28 65153/week @ 2024-02-04 66004/week @ 2024-02-11 46788/week @ 2024-02-18 68879/week @ 2024-02-25 59164/week @ 2024-03-03 68659/week @ 2024-03-10 69425/week @ 2024-03-17 73775/week @ 2024-03-24 73843/week @ 2024-03-31 54473/week @ 2024-04-07

275,186 downloads per month
Used in 111 crates (12 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–14MB
~154K SLoC