Skip to content

Performance Optimization: Enhanced Release Builds #531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,16 @@ log = "0.4"
tauri = { version = "2.3.1", features = ["devtools"] }
tauri-plugin-log = "2.0.0-rc"
tauri-plugin-fs = "2"

[profile.dev]
incremental = true # Fast rebuilds during development

[profile.release]
incremental = false
codegen-units = 1 # Use one code generation unit to improve cross-module optimization
lto = true # Enable Link Time Optimization to optimize across the entire binary
opt-level = "s" # Optimize for small binary size.
panic = "abort"
strip = true
debug = false
debug-assertions = false
Loading