Optimize package size

This commit is contained in:
Tw93
2023-04-18 17:07:25 +08:00
parent fdadfdf6bf
commit 9bcc1a39a4

View File

@@ -30,6 +30,9 @@ default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
# Pay attention to the code size during optimization in order to generate smaller binary files.
# [profile.release]
# opt-level = "s"
# lto = true
[profile.release]
panic = "abort" # Strip expensive panic clean-up logic
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
strip = true # Remove debug symbols