planetwars.dev/planetwars-client/build.rs

10 lines
246 B
Rust
Raw Normal View History

2022-06-01 20:19:13 +02:00
extern crate tonic_build;
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(false)
.build_client(true)
2022-07-25 22:16:50 +02:00
.compile(&["../proto/client_api.proto"], &["../proto"])?;
2022-06-01 20:19:13 +02:00
Ok(())
}