From 01ea36bce9c7f88d1c8ca1b22ff58e1bcc08fa6c Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 26 Oct 2026 04:40:39 +0100 Subject: [PATCH] release profile: thin lto, cgu=1, strip --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3e06cb86..ac385392 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -143,3 +143,8 @@ debug = 1 # line tables only — still debuggable, much faste [profile.dev.package."*"] opt-level = 2 # compile deps faster at runtime; paid once, cached after + +[profile.release] +codegen-units = 1 +lto = "thin" +strip = true