build: shrink the release binary from 2.82 MB to 1.74 MB

Fat LTO, one codegen unit, opt-level z, and clap without color or suggestions.
This commit is contained in:
Willem Vanhulle committed 2026-10-21 12:12:50 +02:00
1 parent 794ca5a086
commit a6737908e0
1 file changed
+4 -2
+4 -2
View File
@@ -24,7 +24,7 @@ missing_errors_doc = "allow"
workspace = true
[dependencies]
clap = { version = "4.6.7", features = ["derive"] }
clap = { version = "4.6.7", default-features = false, features = ["std", "derive", "help", "usage", "error-context"] }
crossterm = "0.29.0"
dbus = "0.9.12"
heck = "0.5.0"
@@ -43,5 +43,7 @@ unicode-width = "0.2.2"
zeroize = "1.9.1"
[profile.release]
lto = "thin"
lto = "fat"
codegen-units = 1
opt-level = "z"
strip = true