aboutsummaryrefslogtreecommitdiffstats
path: root/lib/warden-core/build.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-08-08 07:31:40 +0200
committerrtkay123 <dev@kanjala.com>2025-08-08 07:31:40 +0200
commit3bf2348b1adefccc38ca8b69520c41541ed01aaf (patch)
treec974329c0a5a49988b035136a2916e377284bc1e /lib/warden-core/build.rs
parent9c89deec37def31a3042ba0e5918abef56a2a7d0 (diff)
downloadwarden-3bf2348b1adefccc38ca8b69520c41541ed01aaf.tar.bz2
warden-3bf2348b1adefccc38ca8b69520c41541ed01aaf.zip
build(proto): tonic-prost build script
Diffstat (limited to 'lib/warden-core/build.rs')
-rw-r--r--lib/warden-core/build.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/warden-core/build.rs b/lib/warden-core/build.rs
new file mode 100644
index 0000000..024e9bb
--- /dev/null
+++ b/lib/warden-core/build.rs
@@ -0,0 +1,11 @@
+fn main() -> Result<(), Box<dyn std::error::Error>> {
+ tonic_prost_build::configure()
+ .build_server(false)
+ //.out_dir("src/google") // you can change the generated code's location
+ .protoc_arg("-I=../..")
+ .compile_protos(
+ &["proto/googleapis/google/pubsub/v1/pubsub.proto"],
+ &["../../proto/googleapis"], // specify the root location to search proto dependencies
+ )?;
+ Ok(())
+}