Files
dev/hanzo-node/rust/build.rs
zeekay d9a3368525 Merge origin/main: adopt v0.6.51 version bumps; add Homebrew non-blocking fix
Conflict resolution:
- Accepted remote version bumps to package.json files (0.6.51)
- Kept our workflow fix (Homebrew continue-on-error)
- Included new platform components from parallel agents
2026-01-24 16:04:38 -08:00

17 lines
558 B
Rust

// Build script for hanzo-node
// Compiles protobuf definitions into Rust code
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Compile the protobuf file to OUT_DIR (standard location)
tonic_build::configure()
.build_server(true)
.build_client(true)
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.compile_protos(&["proto/hanzo.node.v1.proto"], &["proto"])?;
// Tell cargo to rerun if proto changes
println!("cargo:rerun-if-changed=proto/hanzo.node.v1.proto");
Ok(())
}