cargo config

This commit is contained in:
Tao Tien 2024-02-12 16:50:32 -08:00
parent 9aa5c7ca01
commit 61252a916e
2 changed files with 13 additions and 1 deletions

View file

@ -55,16 +55,27 @@
};
home.file.".cargo/config.toml".text = ''
[alias]
rr = "run --release"
[build]
target = "x86_64-unknown-linux-musl"
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
[unstable]
codegen-backend = true
[provile.dev]
debug = 0
strip = "debuginfo"
codegen-backend = "cranelift"
[profile.release]
incremental = true
[target.x86-unknown-linux-musl]
linker = "clang"
# linker = "musl-gcc"
# linker = "clang"
rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
'';