Expand description
Parsing stage: compiled descriptor → CodeGenMetadata.
This is the first stage of the code-generation pipeline. It walks every
message, enum, and service in a FileDescriptorSet and extracts the
annotations that drive generation into a structured, runtime-friendly form.
The generator reads standard Google API extensions only — there are no
custom Trestle proto extensions. The recognized extensions and their field
numbers are the *_EXTENSION module constants below (google.api.http,
google.api.resource, google.api.field_behavior,
google.api.resource_reference, and gnostic.openapi.v3.operation), plus the
core debug_redact option (google.protobuf.FieldOptions field 16, handled
in the message submodule). parse_file_descriptor_set is the entry point.
Re-exports§
pub use self::http::HttpPattern;pub use self::http::UrlSegment;pub use self::http::extract_http_rule_pattern;pub use self::http::extract_path_parameters;
Modules§
Structs§
- Code
GenMetadata - Collected metadata for code generation
- Enum
Info - Information about a protobuf enum
- Enum
Value - Information about an enum value
- Message
Field - Information about a field in a protobuf message
- Message
Info - Information about a protobuf message
- Method
Metadata - Metadata extracted from a service method
- Oneof
Variant - Information about a variant in a oneof field
- Service
Info - Information about a protobuf service
Functions§
- parse_
file_ descriptor_ set - Parse a compiled protobuf
FileDescriptorSetintoCodeGenMetadata. - process_
file_ descriptor - Process a single protobuf file descriptor