From a92d6158ce9588ad0f39766d84ef59292dca614c Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Wed, 19 Apr 2023 09:49:19 +0700 Subject: [PATCH] optimized bundle size --- src-tauri/Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 09ac802b..2831f3be 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -36,3 +36,12 @@ default = ["custom-protocol"] # this feature is used used for production builds where `devPath` points to the filesystem # DO NOT remove this custom-protocol = ["tauri/custom-protocol"] + +# Optimized for bundle size. If you want faster builds comment out/delete this section. +[profile.release] +lto = true # Enable Link Time Optimization +opt-level = "z" # Optimize for size. +codegen-units = 1 # Reduce number of codegen units to increase optimizations. +panic = "abort" # Abort on panic +strip = true # Automatically strip symbols from the binary. +debug = false