From 130bfd0e540a2b15ef51e3e5740b46748bed62e0 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 28 Apr 2026 16:59:22 -0300 Subject: [PATCH] config: Set sccache, 6 jobs, and mold linker in .cargo/config.toml - rustc-wrapper = "sccache" for faster rebuilds - jobs = 6 for parallel compilation - linker = "clang" with mold for faster linking This ensures all developers and CI use the same optimized build settings. Run: cargo build -p botserver --bin botserver --- .cargo/config.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 539e6d62..8493605a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -4,4 +4,6 @@ jobs = 6 [target.x86_64-unknown-linux-gnu] linker = "clang" -rustflags = ["-C", "link-arg=-fuse-ld=lld"] +rustflags = [ + "-C", "link-arg=-fuse-ld=mold" +]