Skip to content

Commit 0d81c2b

Browse files
authored
Clarify when cargo detects changes
1 parent 9ef926d commit 0d81c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ 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 file within the package is changed (or the
326+
re-running the build script if any rust file within the package is changed (or the
327327
list of files controlled by the [`exclude` and `include` fields]). For most
328328
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

0 commit comments

Comments
 (0)