Skip to main content

Crate buffa_descriptor

Crate buffa_descriptor 

Source
Expand description

Protobuf descriptor types for buffa.

This crate provides buffa-generated Rust types for the protobuf descriptor schema (google/protobuf/descriptor.proto) and the protoc plugin protocol (google/protobuf/compiler/plugin.proto). It is the foundation for both compile-time code generation (buffa-codegen) and runtime reflection.

The types are self-hosted — generated by buffa-codegen itself — so there is no dependency on an external protobuf library. The only runtime dependency is buffa.

§Modules

  • generated::descriptorFileDescriptorProto, DescriptorProto, FieldDescriptorProto, FeatureSet, Edition, and the rest of descriptor.proto.
  • generated::compilerCodeGeneratorRequest, CodeGeneratorResponse from plugin.proto.

§Regenerating

The generated code is checked in. To regenerate (after a codegen output change or a protobuf version bump):

task gen-bootstrap-types

Modules§

generated
Generated protobuf descriptor types.