1
0
dotfiles/noire-carnation/config/cargo/config.toml
2023-08-28 18:30:23 -06:00

22 lines
502 B
TOML

[target.x86_64-unknown-linux-gnu]
linker = "gcc"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
[target.x86_64-unknown-linux-musl]
linker = "musl-gcc"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
[build]
rustc-wrapper = "/usr/bin/sccache"
[profile.release]
strip = true # strip symbols from the binary
opt-level = "z" # optimize for size
lto = true # link time optimization
codegen-units = 1 # decrease parallelization
panic = "abort"
[profile.release-helpful]
inherits = "release"
panic = "unwind"