about summary refs log tree commit diff
path: root/users/glittershark/system/home/modules/development/rust.nix
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-12-14T17·52-0500
committerglittershark <grfn@gws.fyi>2020-12-14T18·18+0000
commitc038ce07ee747b1b75f9e5e6d1537110534919c4 (patch)
treee605fa2d868c9bca1691c8a69e630b8662ef9049 /users/glittershark/system/home/modules/development/rust.nix
parent4256c2aea99dc268b5632219164912f111318c98 (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/system/home/modules/development/rust.nix')
-rw-r--r--users/glittershark/system/home/modules/development/rust.nix7
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"
+  '';
 }