22 lines
502 B
TOML
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"
|