From 8ef53c999a07f3fd195729533baf0df4ccfdcdc8 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Mon, 11 May 2026 13:27:50 +0700 Subject: [PATCH] build: optimize release profile for binary size and performance Enable LTO, single codegen units, and symbol stripping to reduce binary footprint and improve execution efficiency. --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 0461303..0791de4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,3 +19,10 @@ readme = "README.md" irtt-proto = { version = "0.1.1", path = "crates/irtt-proto" } irtt-client = { version = "0.1.1", path = "crates/irtt-client" } irtt-stats = { version = "0.1.1", path = "crates/irtt-stats" } + +[profile.release] +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort" +strip = "symbols"