chore: configure shared Cargo build caching

This commit is contained in:
2026-09-01 09:04:00 +09:00
parent ac9269d6ce
commit 37a012ef92
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
# Keep intermediate build artifacts outside individual worktrees and reuse them
# across parallel development of this repository. Final artifacts remain in each
# worktree's target directory.
[build]
build-dir = "{cargo-cache-home}/build/yoi"
incremental = false
+4
View File
@@ -6,7 +6,11 @@ pkgs.mkShell {
git git
rustc rustc
cargo cargo
pkgs.sccache
]; ];
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
# sccache is additive to Cargo's shared build-dir, so keep its disk usage bounded.
SCCACHE_CACHE_SIZE = "5G";
buildInputs = with pkgs; [ buildInputs = with pkgs; [
pkg-config pkg-config
openssl openssl