cargo-cache icon indicating copy to clipboard operation
cargo-cache copied to clipboard

Cargo `build-dir` support

Open epage opened this issue 9 months ago • 0 comments

The Cargo team has started a Call for Testing for build-dir which allows users to move intermediate artifacts out of their target-dir. This may break affect the behavior of cargo cache and I would recommend testing this feature out to identify if it does so you can prepare for when your users start using it (or for the future possibilities below), including

  • Preparing any new workarounds.
  • Identifying use cases not yet considered for -Zgc

Note:

  • build-dir files do not have compatibility guarantees
  • In the future we may change the default build-dir
  • In the future, we may change the layout of build-dir

See https://github.com/rust-lang/cargo/issues/14125#issuecomment-2802967106

epage avatar Apr 14 '25 21:04 epage