You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why: the original `rustBuildIncremental` actually produces bad output
in some cases.
(1) it purely relies on `cargo` incremental build correctness
(2) nix flakes copies the repo source to the /nix/store.
(3) for reproducibility, everything in /nix/store has mtime == 1970-01-01.
(4) cargo's rebuild checking only looks at the file mtime, so we get false
negatives (cargo believes the file is unchanged when it is actually
different).
Relevant issue:
[cargo - fingerprint by hash instead of mtime](rust-lang/cargo#6529)
Introducing sccache:
`sccache` caches individual `rustc` invocations and stores the results
in `$SCCACHE_DIR = /var/cache/lexe/sccache`. Using `sccache`:
- cached builds are about 0.4-0.5x time (faster)
- uncached builds are about 1.1-1.2x time (extra overhead)
- sccache sadly can't cache proc-macro crates...
0 commit comments