Skip to content

Commit

Permalink
Merge pull request #1302 from dennisschagt/tutorial-add-rerun-if-changed
Browse files Browse the repository at this point in the history
Include printing of "cargo:rerun-if-changed" in tutorial
  • Loading branch information
dtolnay authored Jan 5, 2024
2 parents bf4df67 + ab8eddc commit 4b7012c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions book/src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ fn main() {
cxx_build::bridge("src/main.rs")
.file("src/blobstore.cc")
.compile("cxx-demo");
println!("cargo:rerun-if-changed=src/main.rs");
println!("cargo:rerun-if-changed=src/blobstore.cc");
println!("cargo:rerun-if-changed=include/blobstore.h");
}
```

Expand Down

0 comments on commit 4b7012c

Please sign in to comment.