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:
parent
d1bc4f9b16
commit
74f2e4d3dd
12 changed files with 5053 additions and 4034 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue