From 7eea0cd4fe901c52544beaf2f5ddca12342bd9bc Mon Sep 17 00:00:00 2001 From: Radical Date: Wed, 30 Apr 2025 21:43:16 +0200 Subject: [PATCH] build: optimize release build use fat lto, strip builds and only 1 codegen-unit --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 8151ec8..981fc76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,11 @@ name = "backend" version = "0.1.0" edition = "2024" +[profile.release] +strip = true +lto = true +codegen-units = 1 + [dependencies] actix-web = "4.10" argon2 = { version = "0.5.3", features = ["std"] }