Skip to content

Commit

Permalink
make release builds smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabwhy committed Apr 12, 2024
1 parent 6bc9fe2 commit 26e3c95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ rfd = { version = "0.14.0", default-features = false, features = ["gtk3"] }
chrono = "0.4.37"

[profile.release]
strip = true
codegen-units = 1 # Compile crates one after another so the compiler can optimize better
lto = true # Enables link to optimizations
opt-level = "z" # Optimize for binary size
strip = true # Remove debug symbols

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand Down

0 comments on commit 26e3c95

Please sign in to comment.