From 5571bf6db90c9cb96839d735084bea7daeb47f54 Mon Sep 17 00:00:00 2001 From: Candifloss Date: Fri, 12 Dec 2025 19:15:58 +0530 Subject: [PATCH] Reduce binary size - Adjust `Cargo.toml` to reduce binary size in `release` pofile --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7838629..097f508 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,10 @@ members = [ "owm_widg_config", "weatherd", "widget", ] + +[profile.release] +lto = "thin" +codegen-units = 1 +strip = "symbols" +opt-level = "z" +panic = "abort" \ No newline at end of file