diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-12-14T17·52-0500 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-12-14T18·18+0000 |
commit | c038ce07ee747b1b75f9e5e6d1537110534919c4 (patch) | |
tree | e605fa2d868c9bca1691c8a69e630b8662ef9049 /users/glittershark | |
parent | 4256c2aea99dc268b5632219164912f111318c98 (diff) |
feat(gs/system): Setup sccache for rust r/2006
Change-Id: Id102a25013d6a99f3db4f082a9feee87eadcd523 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2250 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users/glittershark')
-rw-r--r-- | users/glittershark/system/home/modules/development/rust.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/users/glittershark/system/home/modules/development/rust.nix b/users/glittershark/system/home/modules/development/rust.nix index 29eda82dc188..ee10e9fcb451 100644 --- a/users/glittershark/system/home/modules/development/rust.nix +++ b/users/glittershark/system/home/modules/development/rust.nix @@ -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" + ''; } |