Registry / serialization / protobuf-parse

protobuf-parse

JSON →
library3.7.2rscratesunverified

Parse .proto files into protobuf descriptor objects using either a pure Rust parser or the protoc binary.

# Cargo.toml [dependencies] protobuf-parse = "3.7.2"
INSTALL
IMPORT
SIG · PROTOBUF-PARSE
P
protobuf-parse
serializationrustv3.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse_from_file
use protobuf_parse::parse_from_file;

Parse a .proto file into a FileDescriptorSet.

use protobuf_parse::parse_from_file; let descriptor = parse_from_file("example.proto").unwrap();
Debug
Known issues
gotchaPure Rust parser may not fully match Google's protoc output for complex proto files.
fix
Use the protoc-based parser by enabling the 'protoc' feature or setting PROTOPATH.
affects: >=3.0.0
Upgrade
Version history
3.7.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
protobuf-parse — cargo add protobuf-parse · libregistry