Skip to content

Commit 53a1064

Browse files
authored
Update build-scripts.md
1 parent 0d81c2b commit 53a1064

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/src/reference/build-scripts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ cross-compiling, so keep that in consideration of the impact on compile time.
323323

324324
When rebuilding a package, Cargo does not necessarily know if the build script
325325
needs to be run again. By default, it takes a conservative approach of always
326-
re-running the build script if any rust file within the package is changed (or the
327-
list of files controlled by the [`exclude` and `include` fields]). For most
328-
cases, this is not a good choice, so it is recommended that every build script
326+
re-running the build script if *any* file within the package directory is changed
327+
(or the list of files controlled by the [`exclude` and `include` fields]). For
328+
most cases, this is not a good choice, so it is recommended that every build script
329329
emit at least one of the `rerun-if` instructions (described below). If these
330330
are emitted, then Cargo will only re-run the script if the given value has
331331
changed. If Cargo is re-running the build scripts of your own crate or a

0 commit comments

Comments
 (0)