mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-01 03:37:23 +00:00
perf: update Cargo.toml profiles for optimization
This commit adds incremental compilation for the development profile and optimizes the release profile with settings for code generation, link-time optimization, size optimization, panic behavior, and stripping of symbols. Fixes #4
This commit is contained in:
parent
1fb6a339cf
commit
dbec9fcde5
1 changed files with 10 additions and 0 deletions
|
@ -71,3 +71,13 @@ tauri-plugin-single-instance = "2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio = { version = "^1.45.1", features = ["macros", "rt-multi-thread"] }
|
tokio = { version = "^1.45.1", features = ["macros", "rt-multi-thread"] }
|
||||||
|
|
||||||
|
[profile.dev]
|
||||||
|
incremental = true
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
codegen-units = 1
|
||||||
|
lto = true
|
||||||
|
opt-level = "s" # rust is not the bottleneck, we can optimize for size with a small performance hit
|
||||||
|
panic = "abort"
|
||||||
|
strip = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue