aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/build.rs')
-rw-r--r--planetwars-server/build.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/planetwars-server/build.rs b/planetwars-server/build.rs
new file mode 100644
index 0000000..97bf355
--- /dev/null
+++ b/planetwars-server/build.rs
@@ -0,0 +1,9 @@
+extern crate tonic_build;
+
+fn main() -> Result<(), Box<dyn std::error::Error>> {
+ tonic_build::configure()
+ .build_server(true)
+ .build_client(false)
+ .compile(&["../proto/bot_api.proto"], &["../proto"])?;
+ Ok(())
+}