Skip to main content

Module descriptor

Module descriptor 

Source
Expand description

Descriptor-based proto parsing.

Runs protoc against the configured proto files with --descriptor_set_out, decodes the emitted FileDescriptorSet via prost_types, and converts the structured result into crate-local model types. This replaces the previous regex-based .proto text parser: the descriptor path is robust against comments, nested messages, streaming markers, and proto2/proto3 syntax differences.

Functions§

file_to_proto_service
Convert a FileDescriptorProto into the crate’s ProtoService model.