dotfiles/.cargo/config.toml.cgt
2024-08-03 11:50:52 +02:00

14 lines
292 B
Text

<! local ncpus = tonumber(opt.system "nproc") !>
[profile.release]
lto = true
opt-level = 3
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/"