- netboot-base.nix with SSH key auth - Launch scripts for node01/02/03 - Node configuration.nix and disko.nix - Nix modules for first-boot automation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
19 lines
550 B
Rust
19 lines
550 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let protoc_path = protoc_bin_vendored::protoc_bin_path()?;
|
|
std::env::set_var("PROTOC", protoc_path);
|
|
|
|
tonic_build::configure()
|
|
.build_server(true)
|
|
.build_client(true)
|
|
.compile_protos(
|
|
&[
|
|
"src/kvrpc.proto",
|
|
"src/pdpb.proto",
|
|
"src/raft_server.proto",
|
|
"src/chainfire.proto",
|
|
"src/sqlrpc.proto",
|
|
],
|
|
&["src"], // proto_path
|
|
)?;
|
|
Ok(())
|
|
}
|