Added some release optimizations.
This commit is contained in:
11
Cargo.toml
11
Cargo.toml
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user