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"; };
|
indent = { tab-width = 8; unit = "\t"; };
|
||||||
}
|
}
|
||||||
{ name = "html"; auto-format = false; indent = { tab-width = 4; 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 = "nix"; auto-format = true; formatter = { command = "nixpkgs-fmt"; }; }
|
||||||
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -55,16 +55,27 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".cargo/config.toml".text = ''
|
home.file.".cargo/config.toml".text = ''
|
||||||
|
[alias]
|
||||||
|
rr = "run --release"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
target = "x86_64-unknown-linux-musl"
|
target = "x86_64-unknown-linux-musl"
|
||||||
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
||||||
|
|
||||||
|
[unstable]
|
||||||
|
codegen-backend = true
|
||||||
|
|
||||||
[provile.dev]
|
[provile.dev]
|
||||||
debug = 0
|
debug = 0
|
||||||
strip = "debuginfo"
|
strip = "debuginfo"
|
||||||
|
codegen-backend = "cranelift"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
incremental = true
|
||||||
|
|
||||||
[target.x86-unknown-linux-musl]
|
[target.x86-unknown-linux-musl]
|
||||||
linker = "clang"
|
# linker = "musl-gcc"
|
||||||
|
# linker = "clang"
|
||||||
rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
rustflag = ["-C", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue