Skip to content

Commit 648476e

Browse files
committed
Fix git extension description
1 parent c8be063 commit 648476e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

posts/inside-rust/2024-03-26-this-development-cycle-in-cargo-1.78.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ and in a team meeting, [#13558](https://github.com/rust-lang/cargo/pull/13558) w
265265
In this specific case, the problem is [Split Index](https://github.com/rust-lang/cargo/issues/10150).
266266
In particular, this is causing problems with vendoring packages with build scripts because the
267267
[default behavior for build scripts is to re-run if any source has changed unless `cargo::rerun-if-changed` is emitted](https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed).
268-
They are currently working around this by modifying vendored build scripts to emit a `cargo::rerun-if-changed`.
268+
They are currently working around this by modifying vendored packages to have a `package.include` field which disables Cargo's git walking.
269269

270+
This will also affect `cargo package`.
270271
In discussing this, another scenario that can come up is any `cargo doc` invocation because `rustdoc`, unlike `rustc`, doesn't tell `cargo doc` what files were looked at, so `cargo doc` has to guess.
271272

272273
One option is to walk the directory manually using the [`ignore`](https://crates.io/crates/ignore) package.

0 commit comments

Comments
 (0)