mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
13 lines
329 B
Rust
13 lines
329 B
Rust
//! Build script for compiling protobuf definitions
|
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
println!("cargo:rerun-if-changed=proto/wallet.proto");
|
|
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.build_client(true)
|
|
.compile_protos(&["proto/wallet.proto"], &["proto"])?;
|
|
|
|
Ok(())
|
|
}
|