planetwars.dev/planetwars-client/build.rs
2022-07-25 22:16:50 +02:00

9 lines
246 B
Rust

extern crate tonic_build;
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(false)
.build_client(true)
.compile(&["../proto/client_api.proto"], &["../proto"])?;
Ok(())
}