Skip to content

Commit

Permalink
Build protogen code
Browse files Browse the repository at this point in the history
  • Loading branch information
keesverruijt committed Aug 25, 2024
1 parent 2264aee commit 3bcc330
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
// Use this in build.rs
protobuf_codegen::Codegen::new()
.pure()
// All inputs and imports from the inputs must reside in `includes` directories.
.includes(&["src/protos"])
// Inputs must reside in some of include paths.
.input("src/protos/RadarMessage.proto")
// Specify output directory relative to Cargo output directory.
.cargo_out_dir("protos")
.run_from_script();
}

0 comments on commit 3bcc330

Please sign in to comment.