3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-04 20:54:07 +00:00
Commit graph

28 commits

Author SHA1 Message Date
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 5e9fae966f
fix: cache restore failures (#136)
Fix cache restore failures to to upstream bug.

Fixes #119
2023-05-11 09:01:27 +02:00
Arpad Borsos 3f2513fdf4
avoid calling cargo metadata on pre-cleanup 2022-11-03 11:26:22 +01:00
Arpad Borsos be4be3720d
explicitly close dir handles, add more logging, cleanups 2022-09-04 13:10:36 +02:00
Arpad Borsos 7b8626742a
update registry cleaning 2022-07-09 18:51:34 +02:00
Arpad Borsos 86bae2494f
clean nested and arbitrary profile and target directories 2022-07-09 16:14:38 +02:00
Arpad Borsos 827b33fbd0
pretty printing and fix workspace package retrieval 2022-07-09 15:51:45 +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 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
Tom Parker-Shemilt 536c94f32c
Cache-on-failure support (#22) 2021-06-28 23:18:07 +02:00
Arpad Borsos b495963495 Add a selftest and support for .cargo/bin 2021-02-16 09:06:04 +01:00
Austin Jones 27793b3b80 Add support for the cache-hit output 2021-01-28 18:39:18 +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 9de90d2338 only pre-clean when something was restored 2020-10-13 14:01:46 +02: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 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 ef89c3a8eb typo 2020-09-28 12:30:40 +02:00
Arpad Borsos 271ff4b692 log individual timings 2020-09-28 12:26:11 +02:00
Arpad Borsos cfcc373039 improve logging 2020-09-28 11:54:24 +02:00
Arpad Borsos 99970e092c
initial commit 2020-09-26 23:48:29 +02:00