Optimize for size on release

This commit is contained in:
Philip Kristoffersen
2022-10-03 21:28:43 +02:00
parent dcbf77b610
commit ecfca36431
+6
View File
@@ -65,3 +65,9 @@ winreg = "^0.10.1"
[features]
# This feature is enabled when building for a flatpak environment
flatpak = []
[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true
codegen-units = 1