✨ Optimize package size
This commit is contained in:
@@ -30,6 +30,9 @@ default = ["custom-protocol"]
|
|||||||
custom-protocol = ["tauri/custom-protocol"]
|
custom-protocol = ["tauri/custom-protocol"]
|
||||||
|
|
||||||
# Pay attention to the code size during optimization in order to generate smaller binary files.
|
# Pay attention to the code size during optimization in order to generate smaller binary files.
|
||||||
# [profile.release]
|
[profile.release]
|
||||||
# opt-level = "s"
|
panic = "abort" # Strip expensive panic clean-up logic
|
||||||
# lto = true
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user