Added some release optimizations.

This commit is contained in:
Micheal Smith
2025-10-31 13:55:57 -05:00
parent 8fa79932d6
commit a3ebca0bb2
2 changed files with 35 additions and 69 deletions

View File

@@ -10,11 +10,18 @@ clap = { version = "4.5", features = [ "derive" ] }
color-eyre = "0.6.3"
config = { version = "0.15", features = [ "toml" ] }
directories = "6.0"
dotenvy_macro = "0.15"
futures = "0.3"
human-panic = "2.0"
genai = "0.4.3"
irc = "1.1"
tokio = { version = "1", features = [ "full" ] }
tokio = { version = "1", features = [ "macros", "rt-multi-thread" ] }
tracing = "0.1"
tracing-subscriber = "0.3"
[profile.release]
strip = true
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1
# Comment this if unwinding is needed. Compiling without release works too.
panic = "abort"