cargo config
This commit is contained in:
parent
9aa5c7ca01
commit
61252a916e
2 changed files with 13 additions and 1 deletions
|
|
@ -39,6 +39,7 @@
|
|||
indent = { tab-width = 8; unit = "\t"; };
|
||||
}
|
||||
{ name = "html"; auto-format = false; indent = { tab-width = 4; unit = "\t"; }; }
|
||||
{ name = "java"; auto-format = true; indent = { tab-width = 4; unit = "\t"; }; }
|
||||
{ name = "nix"; auto-format = true; formatter = { command = "nixpkgs-fmt"; }; }
|
||||
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue