Skip to content

Commit 473f999

Browse files
committed
More docs
1 parent 8e13d1a commit 473f999

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/doc/src/reference/unstable.md

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ the registry index. This is intended for tools such as Crater that issue many
1919
Cargo commands, and you want to avoid the network latency for updating the
2020
index each time.
2121

22+
### mtime-on-use
23+
* Original Issue: [#6477](https://github.com/rust-lang/cargo/pull/6477)
24+
* Cache usage meta tracking issue: [#7150](https://github.com/rust-lang/cargo/issues/7150)
25+
26+
The `-Z mtime-on-use` flag is an experiment to have Cargo update the mtime of
27+
used files to make it easier for tools like cargo-sweep to detect which files
28+
are stale. For many workflows this needs to be set on *all* invocations of cargo.
29+
To make this more practical setting the `unstable.mtime_on_use` flag in `.cargo/config`
30+
or the corresponding ENV variable will apply the `-Z mtime-on-use` to all
31+
invocations of nightly cargo. (the config flag is ignored by stable)
32+
2233
### avoid-dev-deps
2334
* Original Issue: [#4988](https://github.com/rust-lang/cargo/issues/4988)
2435
* Stabilization Issue: [#5133](https://github.com/rust-lang/cargo/issues/5133)

0 commit comments

Comments
 (0)