From 3ebddcc301a9f67301962e1b746dd3e27c54c9f7 Mon Sep 17 00:00:00 2001 From: __SyS__ Date: Sat, 27 Jan 2024 18:39:52 +0530 Subject: [PATCH] some build time flags to optmise binary size further (#91) --- src-tauri/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ec089878..5366d6b9 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -44,3 +44,10 @@ winreg = "0.52.0" # this feature is used for production builds or when `devPath` points to the filesystem # DO NOT REMOVE!! custom-protocol = ["tauri/custom-protocol"] + +[profile.release] +panic = "abort" +codegen-units = 1 +lto = true +opt-level = "z" +strip = true