Skip to content

Commit 7ac5cac

Browse files
author
Alexander Zaitsev
authored
feat: add recommended by the Tauri documentation Cargo settings to a default Tauri template (#958)
1 parent 09f0ca2 commit 7ac5cac

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

templates/_base_/src-tauri/Cargo.toml.lte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ serde_json = "1"
3030
[features]
3131
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
3232
custom-protocol = ["tauri/custom-protocol"]{% endif %}
33+
34+
# Read the optimization guideline for more details: https://tauri.app/concept/size/#cargo-configuration
35+
[profile.release]
36+
codegen-units = 1
37+
lto = true
38+
opt-level = 3
39+
panic = "abort"
40+
strip = true

0 commit comments

Comments
 (0)