planetwars.dev/planetwars-server/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(true)
.build_client(false)
.compile(&["../proto/client_api.proto"], &["../proto"])?;
Ok(())
}