From 19dae2f54dbb9fb1c21e7e4aec9feb3e1ea7cb0f Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 21 Dec 2024 20:17:47 +0530 Subject: [PATCH] Add configuration for cargo --- cargo/.cargo/config.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cargo/.cargo/config.toml diff --git a/cargo/.cargo/config.toml b/cargo/.cargo/config.toml new file mode 100644 index 0000000..a55e2f5 --- /dev/null +++ b/cargo/.cargo/config.toml @@ -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