Add proto3 optional to prost build (#65)

* add proto3 optional to prost build

* also add optional proto flag to livekit_ffi

---------

Co-authored-by: Théo Monnom <theo.monnom@outlook.com>
This commit is contained in:
Aaron Spiegel
2023-05-12 05:48:56 -05:00
committed by GitHub
parent f6954e3faa
commit f2b4373ba4
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
use std::io::Result;
fn main() -> Result<()> {
prost_build::compile_protos(
let mut prost_build = prost_build::Config::new();
prost_build.protoc_arg("--experimental_allow_proto3_optional");
prost_build.compile_protos(
&[
"protocol/ffi.proto",
"protocol/handle.proto",