planetwars.dev/planetwars-server/build.rs

10 lines
243 B
Rust
Raw Normal View History

2022-05-31 21:08:56 +02:00
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(())
}