From dfee02629da05d4691ea26117cc3e09147b04ac1 Mon Sep 17 00:00:00 2001 From: Fergus Molloy Date: Mon, 4 Aug 2025 09:49:52 +0100 Subject: [PATCH] optimize release build --- backend/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index c68853c..79881b5 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -35,3 +35,9 @@ name ="nuchat" default = [ "shutdown" ] all = ["shutdown"] shutdown = [] + +[profile.release] +codegen-units = 1 +lto = "fat" +panic = "abort" +strip = "symbols"