Skip to content

Commit 4f5ab63

Browse files
committed
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...
1 parent 00dc0f0 commit 4f5ab63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cln-grpc/build.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
fn main() {
2-
tonic_build::compile_protos("proto/node.proto").unwrap();
2+
let builder = tonic_build::configure();
3+
builder
4+
.protoc_arg("--experimental_allow_proto3_optional")
5+
.compile(&["proto/node.proto"], &["proto"])
6+
.unwrap();
37
}

0 commit comments

Comments
 (0)