macro_rules! include_proto {
($pkg:literal) => { ... };
}Expand description
Include the generated stitcher for a proto package from OUT_DIR.
Codegen emits one <pkg>.mod.rs per package which include!s the
per-proto content files and authors the __buffa::{view, oneof, ext}
ancillary tree, so a single macro call brings in everything.
$pkg is the dotted proto package literal exactly as it appears
in the .proto’s package declaration (e.g. "google.protobuf",
not a Rust path or the .proto file path). For protos with no
package declaration, pass "__buffa" (the reserved sentinel; no
real package can use it).
ⓘ
pub mod my_pkg {
buffa::include_proto!("my.pkg");
}For checked-in generated code (no OUT_DIR), use
include_proto_relative!.