mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
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...
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
tonic_build::compile_protos("proto/node.proto").unwrap();
|
let builder = tonic_build::configure();
|
||||||
|
builder
|
||||||
|
.protoc_arg("--experimental_allow_proto3_optional")
|
||||||
|
.compile(&["proto/node.proto"], &["proto"])
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user