From c038ce07ee747b1b75f9e5e6d1537110534919c4 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 14 Dec 2020 12:52:04 -0500 Subject: 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 --- users/glittershark/system/home/modules/development/rust.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'users/glittershark/system') diff --git a/users/glittershark/system/home/modules/development/rust.nix b/users/glittershark/system/home/modules/development/rust.nix index 29eda82dc1..ee10e9fcb4 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" + ''; } -- cgit 1.4.1