1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Generated protobuf descriptor types.
//!
//! These types are generated from `google/protobuf/descriptor.proto` and
//! `google/protobuf/compiler/plugin.proto` using buffa-codegen itself.
//! This makes buffa fully self-hosted — no external protobuf library is
//! needed to decode descriptors — and gives direct access to edition
//! features (`FeatureSet`, `Edition`, etc.).
//!
//! To regenerate, run `task gen-bootstrap-types` from the repo root.
//!
//! The module tree mirrors the proto package nesting
//! (`google.protobuf.compiler` is a child of `google.protobuf`), so the
//! `super::*` cross-package references the codegen emits resolve without
//! re-export workarounds — `compiler::*` reaching for
//! `super::FileDescriptorProto` lands directly in the parent module, and
//! `compiler::__buffa::view::*` reaching for
//! `super::super::super::__buffa::view::FileDescriptorProtoView` does too.
//! The sibling-style `crate::generated::compiler::*` path used by
//! downstream consumers (and by `buffa-codegen`'s file-level extern routing
//! for `google/protobuf/compiler/plugin.proto`) is preserved with a
//! `pub use`.
/// `google.protobuf.compiler` types — `CodeGeneratorRequest`,
/// `CodeGeneratorResponse`, `Version`. Re-exported here for the stable
/// `::buffa_descriptor::generated::compiler` path; the module proper lives
/// at [`descriptor::compiler`] so `super::*` cross-package references in the
/// generated code resolve through the proto package nesting.
pub use compiler;
// Re-export the specific descriptor types referenced from `super::` by the
// compiler package — kept for backward compat with the previous flat module
// layout where `compiler` was a sibling of `descriptor`.
pub use ;