0g-storage-node/node/rpc/build.rs
0g-peterzhb 3ba369e9e5
@peter/add grpc (#377)
* add grpc for uploading segments

* add reflection

* add upload segments grpc function

* format code

* fix lint

* fix test
2025-07-07 22:14:06 +08:00

8 lines
259 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
// Compile proto/my_service.proto
tonic_build::configure()
.file_descriptor_set_path("proto/zgs_grpc_descriptor.bin")
.compile(&["proto/zgs_grpc.proto"], &["proto"])?;
Ok(())
}