mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +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:
parent
00dc0f082e
commit
4f5ab638df
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue