From 4857a8552d4f279ff19423bbc0967ff2793bc91d Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Tue, 1 Feb 2022 18:01:39 +0100 Subject: [PATCH] Create optimized realease binaries This reduced the size of the binary from 6.7MB to 4.5MB --- src-tauri/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index f7a92c4..d4b3bda 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -24,3 +24,10 @@ tauri = { git = "https://github.com/probablykasper/tauri", rev = "4c1be45" } [features] default = [ "custom-protocol" ] custom-protocol = [ "tauri/custom-protocol" ] + +[profile.release] +panic = "abort" +codegen-units = 1 +lto = true +incremental = false +opt-level = "s" -- 2.51.2