chore: configure shared Cargo build caching
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user