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