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:
ByteAtATime 2025-07-14 09:11:04 -07:00
parent 1fb6a339cf
commit dbec9fcde5
No known key found for this signature in database

View file

@ -71,3 +71,13 @@ tauri-plugin-single-instance = "2"
[dev-dependencies]
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