• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

main()1 fn main() {
2     protobuf_codegen::Codegen::new()
3         // Pure Rust codegen. Not as well-tested, but avoids needing protoc installed.
4         .pure()
5         // All inputs and imports from the inputs must reside in `includes` directories.
6         .include("src/protos")
7         // Inputs must reside in some of include paths.
8         .input("src/protos/metadata.proto")
9         // Specify output directory relative to Cargo output directory.
10         .cargo_out_dir("protos")
11         .run_from_script();
12 }
13