Skip to content

Commit 6f033d5

Browse files
committed
Make sure the sdk folder is checked
Signed-off-by: Tiago Requeijo <[email protected]>
1 parent b97e411 commit 6f033d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

protobufs/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,15 @@ fn main() -> anyhow::Result<()> {
248248
.services_same("UtilPrngTransactionBody")
249249
.services_same("VirtualAddress");
250250

251+
// disable emitting for the generated proto files
251252
cfg.out_dir(&sdk_out_dir).emit_rerun_if_changed(false).compile_protos(
252253
&["./sdk/transaction_list.proto"],
253254
&["./sdk/", services_tmp_path.as_os_str().to_str().unwrap()],
254255
)?;
255256

257+
// check if the "./sdk" folder has changed
258+
println!("cargo:rerun-if-changed={}", "./sdk");
259+
256260
// see note wrt services.
257261
remove_useless_comments(&sdk_out_dir.join("proto.rs"))?;
258262

0 commit comments

Comments
 (0)