Skip to content

Commit

Permalink
cargo fmt --check
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocurt committed Oct 22, 2024
1 parent eda8dd2 commit 7b02298
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions edgeless_node/build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// compiles all of the dda protos on build
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Add flag enabling optional proto3 in tonic_build
tonic_build::configure()
.protoc_arg("--experimental_allow_proto3_optional")
.compile(
tonic_build::configure().protoc_arg("--experimental_allow_proto3_optional").compile(
&[
"src/resources/dda/proto/com.proto",
"src/resources/dda/proto/state.proto",
Expand All @@ -17,4 +15,4 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// tonic_build::compile_protos("src/resources/dda/proto/state.proto")?;
// tonic_build::compile_protos("src/resources/dda/proto/store.proto")?;
Ok(())
}
}

0 comments on commit 7b02298

Please sign in to comment.