11 Commits
Author SHA1 Message Date
Nathan Stocks c8037a86dd fix: include a virtual workspace's root Cargo.toml in the cache key (#395)
In a virtual workspace the root `Cargo.toml` is not a package, so the cache key hashed only the
members' manifests and left out the root's `[profile]`, `[patch]` and `[workspace.dependencies]`
(#268). Editing one of those, such as a `[profile.dev]` opt-level, kept the same key: every run
restored the stale cache as an exact hit, rebuilt what the edit invalidated, and saved nothing, so
the rebuild repeated on every run until something else changed the key.

This change hashes the root manifest of the workspace `cargo metadata` reports, along with its
members' manifests. It ignores `workspace.package.version` and the paths and versions of path
dependencies in `[workspace.dependencies]`, as it already does for members, so a release version
bump still keeps the key. It also reads `Cargo.lock` from that root, so a `workspaces` entry that
points at a member directory now hashes the lockfile that builds it. A workspace whose root is a
package keeps its key, and a virtual workspace gets a new one once.
2026-10-23 09:58:52 +02:00
Arpad Borsos f0fca6fc1c update dependencies and rebuild 2026-10-20 15:42:38 +02:00
Simon Scatton 0e361f3528 fix: log rustup toolchain list failure as info instead of warning (#393) (#394)
Do not show a warning when rustup is not installed.
2026-10-20 15:35:22 +02:00
Tethys Svensson 258712b0b7 fix: stop cleanup timestamp pruning after the first entry (#377)
The timestamp branch in rmExcept returned after the first directory
entry, so at most one outdated item was ever removed. Replace the early
return with continue so every entry is checked.
2026-08-12 18:12:05 +02:00
Arpad Borsos b16e8d71b2 bump rollup and rebuild 2026-08-06 08:19:44 +02:00
Arpad Borsos 9f151aca7c update dependencies, rebuild 2026-07-26 16:34:10 +02:00
eitsupi a31add9f17 Fix Windows cache path validation after Rollup migration (#355) 2026-07-04 10:11:26 +02:00
Arpad Borsos 6dfd3c5062 rebuild dist 2026-07-04 09:56:13 +02:00
Arpad Borsos c106961fee use rollup to do bundle splitting
this uses dynamic imports for the cache provider and should thus solve the
deprecated import error when using warpbuild
2026-06-06 14:35:16 +02:00
Arpad Borsos 1fe0a60026 Merge branch 'master' of https://github.com/Swatinem/rust-cache 2026-06-06 14:11:05 +02:00
Arpad Borsos be9aa033ee package maintenance
- update to TS6
- replace ncc by rollup, which seems to now be the recommended workflow according to <https://github.com/actions/typescript-action>
- remove buildjet provider, as they are shutting down, see <https://buildjet.com/for-github-actions/blog/we-are-shutting-down>
2026-06-06 14:02:52 +02:00