You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New Cargo build dir layout breaks caching for packages with hyphenated names #370
Hi! First time opening an issue, so let me know if I've missed anything important :).
rust-lang/cargo#17258 (merged 2026-07-24) uses a new path format for crates. Version 1 used <pkg>-<hash>, which rust-cache assumes, but this is no longer the case. Now caching is broken for crates with hyphenated crate names.
A temporary fix for users is to use the environment variable __CARGO_TEMPORARY_BUILD_DIR_NEW_LAYOUT_OPT_OUT=1 before a fix lands. However, this variable's effect is internal and unstable for Cargo and could disappear in a future release. To do so, you can do something like this in your actions YAML file:
Activity
Swatinem commentedon Aug 6, 2026
At least the issue and PR do not look like slop, thank you for that ❤️