Skip to content

Commit

Permalink
✨ Optimize package size
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Apr 18, 2023
1 parent 2575414 commit f3562c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f3562c2

Please sign in to comment.