feat(gs/system): Setup sccache for rust

Change-Id: Id102a25013d6a99f3db4f082a9feee87eadcd523
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2250
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Griffin Smith 2020-12-14 12:52:04 -05:00 committed by glittershark
parent 4256c2aea9
commit c038ce07ee

View file

@ -6,6 +6,8 @@
rustup
rust-analyzer
cargo-edit
cargo-expand
sccache
];
programs.zsh.shellAliases = {
@ -13,4 +15,9 @@
"cb" = "cargo build";
"ct" = "cargo test";
};
home.file.".cargo/config".text = ''
[build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
'';
}