#protobuf

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

#115 in #protobuf

Download history 159/week @ 2024-06-17 232/week @ 2024-06-24 121/week @ 2024-07-01 178/week @ 2024-07-08 193/week @ 2024-07-15 158/week @ 2024-07-22 264/week @ 2024-07-29 224/week @ 2024-08-05 187/week @ 2024-08-12 164/week @ 2024-08-19 267/week @ 2024-08-26 101/week @ 2024-09-02 96/week @ 2024-09-09 156/week @ 2024-09-16 193/week @ 2024-09-23 101/week @ 2024-09-30

555 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
~150K SLoC