Skip to content

Commit

Permalink
fix linux protoc error
Browse files Browse the repository at this point in the history
  • Loading branch information
chanderlud committed Dec 12, 2023
1 parent e94ac36 commit f9c5351
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use std::io::Result;

fn main() -> Result<()> {
prost_build::compile_protos(&["src/items.proto"], &["src/"])?;
let mut config = prost_build::Config::new();
config.protoc_arg("--experimental_allow_proto3_optional");
config.compile_protos(&["src/items.proto"], &["src/"])?;

Ok(())
}

0 comments on commit f9c5351

Please sign in to comment.