rust build time improvements

This commit is contained in:
Tao Tien 2024-02-05 16:08:15 -08:00
parent 54db699510
commit 279ed963f3
2 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
mold-wrapped
jetbrains.idea-community jetbrains.idea-community
jdt-language-server jdt-language-server
gradle gradle

View file

@ -35,6 +35,19 @@
}; };
}; };
home.file.".cargo/config.toml".text = ''
[build]
target = "x86_64-unknown-linux-musl"
[provile.dev]
debug = 0
strip = "debuginfo"
[target.x86-unknown-linux-musl]
linker = "clang"
rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
'';
home.username = "tao"; home.username = "tao";
home.homeDirectory = "/home/tao"; home.homeDirectory = "/home/tao";
home.stateVersion = "23.11"; home.stateVersion = "23.11";