proto/build.rs
Noor 358c2d84ca
Add proto for daemon
renamed to shared proto update build configuration
changed exports for both protos in lib
new rust structures for daemon types
2025-01-20 16:57:47 +05:30

9 lines
270 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(&["proto/daemon.proto", "proto/shared.proto"], &["proto"])?;
Ok(())
}