From ed8f4037a660f49da65a77ce7e17c8e14404f58f Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Fri, 6 Sep 2024 22:32:12 +0200 Subject: [PATCH] much better recompile times --- axum_server/Cargo.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/axum_server/Cargo.toml b/axum_server/Cargo.toml index 93cb3de..5fa2a7c 100644 --- a/axum_server/Cargo.toml +++ b/axum_server/Cargo.toml @@ -27,11 +27,17 @@ rayon = "1.10.0" [build] rustflags = ["-Z", "threads=8"] +[target.x86_64-unknown-linux-gnu] +rustflags = [ + "-C", "link-arg=-fuse-ld=lld" +] + + [profile.dev] -debug = true +debug = false opt-level = 0 -codegen-units = 16 -lto = "thin" +# codegen-units = 16 +# lto = "thin" panic = "unwind" strip = false incremental = true