From e229bd5c23c173161963fa836f3387b61cabb4a4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 9 Sep 2024 04:51:43 -0700 Subject: Bump: rust config.toml --- home/ebisu/fortune/development/languages/rust.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/ebisu/fortune/development/languages/rust.nix b/home/ebisu/fortune/development/languages/rust.nix index b2376f0..9664669 100644 --- a/home/ebisu/fortune/development/languages/rust.nix +++ b/home/ebisu/fortune/development/languages/rust.nix @@ -9,4 +9,13 @@ cargo-udeps (callPackage ../../../../../pkgs/cargo-clean-all.nix { }) ]; + + home.file.".local/share/cargo/config.toml".text = with pkgs; '' + [build] + rustc-wrapper = "${sccache}/bin/sccache" + + [target.x86_64-unknown-linux-gnu] + linker = "${clang}/bin/clang" + rustflags = ["-Clink-args=-fuse-ld=${mold}/bin/mold"] + ''; } -- cgit v1.2.3