add cargo settings

This commit is contained in:
fbachus
2024-11-08 18:54:34 +01:00
parent 5eedb55cbb
commit e188de5557

13
.cargo/config.toml Normal file
View File

@@ -0,0 +1,13 @@
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "target-cpu=native", "-C",
"link-arg=-fuse-ld=/usr/bin/mold"]
[build]
rustc-wrapper = "sccache"