chore: shard Cargo build cache by workspace

This commit is contained in:
2026-09-01 09:33:47 +09:00
parent a1b659c45d
commit e01b46b30a
2 changed files with 5 additions and 5 deletions
+4 -1
View File
@@ -8,13 +8,16 @@ pkgs.mkShell {
cargo
pkgs.sccache
];
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
# sccache is additive to Cargo's shared build-dir, so keep its disk usage bounded.
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
SCCACHE_CACHE_SIZE = "5G";
buildInputs = with pkgs; [
pkg-config
openssl
];
shellHook = ''
if repo_root="$(git rev-parse --show-toplevel 2>/dev/null)"; then
: # export YOI_POD_RUNTIME_COMMAND="$repo_root/target/debug/yoi"