Skip to content

Commit 68c94e8

Browse files
committed
mtime+content tracking
1 parent 7197c66 commit 68c94e8

File tree

5 files changed

+164
-38
lines changed

5 files changed

+164
-38
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ anyhow = "1.0"
3333
filetime = "0.2.9"
3434
flate2 = { version = "1.0.3", default-features = false, features = ["zlib"] }
3535
git2 = "0.13.12"
36+
fxhash = "0.2.1"
3637
git2-curl = "0.14.0"
3738
glob = "0.3.0"
3839
hex = "0.4"

src/cargo/core/compiler/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub struct Context<'a, 'cfg> {
3838
/// Fingerprints used to detect if a unit is out-of-date.
3939
pub fingerprints: HashMap<Unit, Arc<Fingerprint>>,
4040
/// Cache of file mtimes to reduce filesystem hits.
41-
pub mtime_cache: HashMap<PathBuf, FileTime>,
41+
pub mtime_cache: HashMap<PathBuf, (FileTime, u32, u64)>,
4242
/// A set used to track which units have been compiled.
4343
/// A unit may appear in the job graph multiple times as a dependency of
4444
/// multiple packages, but it only needs to run once.

0 commit comments

Comments
 (0)