From 37b87a7e570383ce12856bfee33f2013e751e0cc Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 27 Dec 2024 21:24:05 +0300 Subject: [PATCH] chore(cargo): override release profile to focus on min size of binary --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 94cbc4a..ba7823a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,16 @@ authors = [ "noti-rs" ] version = "0.1.0" edition = "2021" +# Focus on min size of bin +[profile.release] +lto = true +strip = true +opt-level = "z" +codegen-units = 1 +panic = "abort" +debug = "none" +debug-assertions = false + [[bin]] path = "crates/app/main.rs" name = "noti"