From 3bcc3304185b46ceded2680b596732de443b8cfd Mon Sep 17 00:00:00 2001 From: Kees Verruijt Date: Sun, 25 Aug 2024 11:42:02 +0200 Subject: [PATCH] Build protogen code --- build.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..6bff418 --- /dev/null +++ b/build.rs @@ -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(); +}