diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-06-01 20:19:13 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-06-01 20:19:13 +0200 |
commit | 0f80b196149a0fb75d84b61c8bbbeb9a71267129 (patch) | |
tree | cf353555411c2612f92a861acf97686df5fb51c5 /planetwars-client/build.rs | |
parent | af5cd69f7b60c07c4830f2eca9b8b1544c7c4972 (diff) | |
download | planetwars.dev-0f80b196149a0fb75d84b61c8bbbeb9a71267129.tar.xz planetwars.dev-0f80b196149a0fb75d84b61c8bbbeb9a71267129.zip |
set up stub grpc client
Diffstat (limited to 'planetwars-client/build.rs')
-rw-r--r-- | planetwars-client/build.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/planetwars-client/build.rs b/planetwars-client/build.rs new file mode 100644 index 0000000..acabd08 --- /dev/null +++ b/planetwars-client/build.rs @@ -0,0 +1,9 @@ +extern crate tonic_build; + +fn main() -> Result<(), Box<dyn std::error::Error>> { + tonic_build::configure() + .build_server(false) + .build_client(true) + .compile(&["../proto/bot_api.proto"], &["../proto"])?; + Ok(()) +} |