aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/build.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-05-31 21:08:56 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-05-31 21:08:56 +0200
commitaf5cd69f7b60c07c4830f2eca9b8b1544c7c4972 (patch)
tree8abe8829f8517299002a72bfeac84cd266f5d550 /planetwars-server/build.rs
parentef19e3a9e79c85753f75b8f87a06b67c574a72ee (diff)
downloadplanetwars.dev-af5cd69f7b60c07c4830f2eca9b8b1544c7c4972.tar.xz
planetwars.dev-af5cd69f7b60c07c4830f2eca9b8b1544c7c4972.zip
set up gprc server
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(())
+}