mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-04 20:02:32 +01:00
rust configuration
This commit is contained in:
parent
389a3b2d0b
commit
29b5164b15
3 changed files with 12 additions and 4 deletions
|
@ -1,8 +1,4 @@
|
|||
<! local ncpus = tonumber(opt.system "nproc") !>
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
linker = "/usr/bin/clang"
|
||||
rustflags = ["-Clink-arg=-fuse-ld=lld"]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
opt-level = 3
|
||||
|
@ -10,3 +6,9 @@ codegen-units = <% math.min(ncpus, 4) %>
|
|||
|
||||
[profile.debug]
|
||||
codegen-units = <% ncpus %>
|
||||
|
||||
[registry]
|
||||
default = "mzte"
|
||||
|
||||
[registries.mzte]
|
||||
index = "sparse+https://git.mzte.de/api/packages/LordMZTE/cargo/"
|
||||
|
|
4
.cargo/credentials.toml.cgt
Normal file
4
.cargo/credentials.toml.cgt
Normal file
|
@ -0,0 +1,4 @@
|
|||
<! if opt.mztegit_token then !>
|
||||
[registries.mzte]
|
||||
token = "Bearer <% opt.mztegit_token %>"
|
||||
<! end !>
|
|
@ -39,6 +39,7 @@ let
|
|||
|
||||
cargoSha256 = "sha256-/jx1hC/98v5L8XLG3ecFkk5H60HDtaKede+a8HDeFk4=";
|
||||
})
|
||||
rust-analyzer
|
||||
taplo
|
||||
vscode-langservers-extracted # cssls, eslint, html, jsonls
|
||||
zls
|
||||
|
@ -47,6 +48,7 @@ let
|
|||
(pkgs.linkFarm "prettier" [{ name = "bin/prettier"; path = "${nodePackages.prettier}/bin/prettier"; }]) # needed due to symlink shenanigans
|
||||
fnlfmt
|
||||
nixpkgs-fmt
|
||||
rustfmt
|
||||
shfmt
|
||||
stylua
|
||||
|
||||
|
|
Loading…
Reference in a new issue