Add back minimize profile

This commit is contained in:
Michael Mikovsky
2026-04-25 11:36:10 -06:00
parent 6bdf59c5c9
commit 792eb28457
2 changed files with 17 additions and 5 deletions
+12
View File
@@ -1,3 +1,5 @@
cargo-features = ["trim-paths", "panic-immediate-abort"]
[workspace]
members = [
"ush-obfuscate",
@@ -45,6 +47,16 @@ chrono = { workspace = true, optional = true }
# ush-obfuscate = { workspace = true }
static_init = { workspace = true }
[profile.minimize]
inherits = "release"
strip = true # Strip symbols from the binary
opt-level = "z" # Optimize for size
lto = true # Link tree optimization
codegen-units = 1
panic = "immediate-abort"
debug = false # Remove debug
trim-paths="all"
[lints.rust]
elided_lifetimes_in_paths = "warn"
future_incompatible = { level = "warn", priority = -1 }