3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-11-14 11:41:16 +00:00

feat: Implement caching mechanism for Rust projects

- Added CacheConfig class to manage cache paths, keys, and workspace configurations.
- Implemented cache restoration logic in restore.js, including handling cache misses and mismatches.
- Developed save.js to handle cache saving, including cleaning up target directories and registry.
- Introduced utility functions in utils.js for command execution and cache provider selection.
- Created Workspace class in workspace.js to manage Rust workspace metadata and package retrieval.
This commit is contained in:
Ryan-Brice 2025-10-21 17:40:45 +08:00
parent d1bc4f9b16
commit 74f2e4d3dd
No known key found for this signature in database
GPG key ID: 3702BD1113AFDD13
12 changed files with 5053 additions and 4034 deletions

View file

@ -32,6 +32,10 @@ sensible defaults.
# default: "true"
use-job-key: ""
# If the automatic `job`-based cache key should include a hash of the job's contents.
# default: "true"
add-job-hash: ""
# A whitespace separated list of env-var *prefixes* who's value contributes
# to the environment cache key.
# The env-vars are matched by *prefix*, so the default `RUST` var will