3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-18 02:42:18 +00:00

wip: add incremental mtime restore

This commit is contained in:
Jonathan Kelley 2025-01-28 18:13:52 -08:00
parent f0deed1e0e
commit 3faf29c29b
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE
6 changed files with 116 additions and 21 deletions

View file

@ -34,6 +34,9 @@ export class CacheConfig {
/** The cargo binaries present during main step */
public cargoBins: Array<string> = [];
/** Whether to cache incremental builds */
public incremental: boolean = false;
/** The prefix portion of the cache key */
private keyPrefix = "";
/** The rust version considered for the cache key */
@ -43,7 +46,7 @@ export class CacheConfig {
/** The files considered for the cache key */
private keyFiles: Array<string> = [];
private constructor() {}
private constructor() { }
/**
* Constructs a [`CacheConfig`] with all the paths and keys.