3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-07-16 19:46:42 +00:00
Commit graph

41 commits

Author SHA1 Message Date
Jonathan Kelley
6f58383b83
save before clearing 2025-01-28 21:41:21 -08:00
Jonathan Kelley
70758ffdc7
better logging, better staging 2025-01-28 21:14:58 -08:00
Jonathan Kelley
a0f80e7b74
save incrementals 2025-01-28 21:00:55 -08:00
Jonathan Kelley
3faf29c29b
wip: add incremental mtime restore 2025-01-28 18:13:52 -08:00
Benjy Weinberger
e8e63cdbf2
Allow opting out of caching $CARGO_HOME/bin. (#216)
Prevents wiping the bin directory, which is harmful for
self-hosted runners.
2024-12-10 08:47:51 +01:00
Gunnar Lilleaasen
96a8d65dba
Only run macOsWorkaround() on macOS (#206) 2024-09-17 17:45:02 +02:00
Arpad Borsos
378c8285a4
Work around upstream GitHub issue and update dependencies 2024-01-14 09:26:03 +01:00
Max Heller
d30f1144e8
Only key by Cargo.toml and Cargo.lock files of workspace members (#180) 2023-12-03 11:57:51 +01:00
Arpad Borsos
3312b3ab47
Slightly improve docs 2023-08-02 12:46:45 +02:00
Arpad Borsos
f6987ea139
Improve errors and cleanup
- Silence errors and do not create error annotations, fixes #144
- Implement cleanup for new sparse registry
- Do not clean `-sys` dependencies from `registry/src`, hopefully fixes  #150
2023-08-02 12:15:14 +02:00
Jordan Oroshiba
b00faf5858
Add BuildJet Option (#154) 2023-08-01 09:01:11 +02:00
Steven Hartland
ad97570a01
fix: cache key stability (#142)
Ensure consistency of main and post configuration by storing and
restoring it from state, which in turn ensures cache key stability.

Also:
* Fixed some typos.
* Use core.error for logging errors.
* Fix inverted condition on cache-all-crates.

Reverts: #138
Fixes #140
2023-05-18 22:48:40 +02:00
Steven Hartland
def0926359
feat: add option to cache all crates (#137)
Add cache-all-crates option which allows all crates to be cached instead
of just the dependency crates. This is useful when additional crates are
required for CI tooling.
2023-05-11 23:15:09 +02:00
Steven Hartland
5e9fae966f
fix: cache restore failures (#136)
Fix cache restore failures to to upstream bug.

Fixes #119
2023-05-11 09:01:27 +02:00
Lucas Fernandes Nogueira
ecee04e7b3
feat: add save-if option, closes #66 (#91) 2022-11-06 19:15:00 +01:00
Arpad Borsos
7b8626742a
update registry cleaning 2022-07-09 18:51:34 +02:00
Arpad Borsos
07a2ee71bc
lol, dependency check was reversed 2022-07-09 17:37:48 +02:00
Arpad Borsos
827b33fbd0
pretty printing and fix workspace package retrieval 2022-07-09 15:51:45 +02:00
Arpad Borsos
36af5cb1ae
fix pretty printing and selftest 2022-07-09 15:39:43 +02:00
Arpad Borsos
6ed4c28a7c
rewrite it all 2022-07-09 15:19:29 +02:00
Nick Mosher
260a713186
Cache multiple target directories from 'target-dir' 2022-07-09 11:58:11 +02:00
Vlad-Shcherbina
5040f39404
Skip registry cleaning if no registry was found (#65)
This fixes #64.

When Cargo is run in sparse-registry mode, it doesn't create
  ~/.cargo/registry/index/github.com-1ecc6299db9ec823/
directory.
2022-06-26 10:51:36 +02:00
Vlad-Shcherbina
2055a01dcd
Improve diagnostics: show exception stack trace (#63)
Also add logging to the quiet exception handlers.
2022-06-25 23:20:01 +02:00
Arpad Borsos
74e8e24b6d
Update dependencies, clean both debug and release targets 2022-04-08 17:25:03 +02:00
Arpad Borsos
d127014599
update dependencies 2021-09-28 17:49:43 +02:00
Arpad Borsos
b495963495 Add a selftest and support for .cargo/bin 2021-02-16 09:06:04 +01:00
Arpad Borsos
2639a56bb8 implement support for CARGO_HOME
fixes #8
2021-01-28 18:16:36 +01:00
Arpad Borsos
9e10a44ea3 support working-directory input, cleanup 2020-12-07 23:56:50 +01:00
Arpad Borsos
292ef23e77 avoid error when saving without git dependencies 2020-10-13 13:52:55 +02:00
Arpad Borsos
5f6034beb8 improve log output 2020-10-06 12:57:42 +02:00
Arpad Borsos
b740ae5d3a clean and persist the git db/checkouts 2020-10-05 18:18:59 +02:00
Arpad Borsos
e8e3c57b3b merge all the caches and simplify 2020-10-03 18:39:38 +02:00
Arpad Borsos
f77cb1be47 merge the registry caches together 2020-10-03 18:10:54 +02:00
Arpad Borsos
d38127a85b Improve target pruning
fixes #1
2020-09-29 12:30:19 +02:00
Arpad Borsos
08ca2ff969 make macos workaround silent 2020-09-28 12:46:36 +02:00
Arpad Borsos
271ff4b692 log individual timings 2020-09-28 12:26:11 +02:00
Arpad Borsos
e0c07d2a65 work around macos cache corruption 2020-09-28 12:08:11 +02:00
Arpad Borsos
1304a2ec8d add ability to version caches 2020-09-28 12:00:58 +02:00
Arpad Borsos
cfcc373039 improve logging 2020-09-28 11:54:24 +02:00
Arpad Borsos
8902a8fc6c collect packages with --all-features 2020-09-28 11:44:06 +02:00
Arpad Borsos
99970e092c
initial commit 2020-09-26 23:48:29 +02:00