diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-05-31 21:08:56 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-05-31 21:08:56 +0200 |
commit | af5cd69f7b60c07c4830f2eca9b8b1544c7c4972 (patch) | |
tree | 8abe8829f8517299002a72bfeac84cd266f5d550 /planetwars-server/build.rs | |
parent | ef19e3a9e79c85753f75b8f87a06b67c574a72ee (diff) | |
download | planetwars.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.rs | 9 |
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(()) +} |