core-lightning/cln-grpc/build.rs
Christian Decker 4f5ab638df grpc: Add the experimental optional flag to protoc
The `optional` keyword was first removed, and then re-added again, and
then it was made into an experimental flag. Come on people, decide
already which one it is...
2022-11-18 15:10:32 +01:00

8 lines
201 B
Rust

fn main() {
let builder = tonic_build::configure();
builder
.protoc_arg("--experimental_allow_proto3_optional")
.compile(&["proto/node.proto"], &["proto"])
.unwrap();
}