Add configuration for cargo

This commit is contained in:
Sanchayan Maity 2024-12-21 20:17:47 +05:30
parent 65df9845f7
commit 19dae2f54d
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

15
cargo/.cargo/config.toml Normal file
View file

@ -0,0 +1,15 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
[build]
rustc-wrapper = "sccache"
[unstable]
codegen-backend = true
[profile.debug]
codegen-backend = "cranelift"
[profile.release]
lto = true