renamed to shared proto update build configuration changed exports for both protos in lib new rust structures for daemon types
9 lines
270 B
Rust
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(())
|
|
}
|