Skip to content

Commit b03dada

Browse files
committed
Prevent proto package from recompiling on every build.
Signed-off-by: Tiago Requeijo <[email protected]>
1 parent fe554cd commit b03dada

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

protobufs/build.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
// SPDX-License-Identifier: Apache-2.0
22

33
use std::env;
4-
use std::fs::{
5-
self,
6-
create_dir_all,
7-
read_dir,
8-
};
4+
use std::fs::{self, create_dir_all, read_dir};
95
use std::path::Path;
106

117
use regex::RegexBuilder;
@@ -252,7 +248,7 @@ fn main() -> anyhow::Result<()> {
252248
.services_same("UtilPrngTransactionBody")
253249
.services_same("VirtualAddress");
254250

255-
cfg.out_dir(&sdk_out_dir).compile_protos(
251+
cfg.out_dir(&sdk_out_dir).emit_rerun_if_changed(false).compile_protos(
256252
&["./sdk/transaction_list.proto"],
257253
&["./sdk/", services_tmp_path.as_os_str().to_str().unwrap()],
258254
)?;

0 commit comments

Comments
 (0)