aports/testing/xh/minimize-size.patch
2021-03-16 00:22:57 +01:00

15 lines
249 B
Diff

Minimize size of the binary.
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -56,3 +56,9 @@
[build-dependencies]
syntect = { version = "4.4", default-features = false }
+
+[profile.release]
+codegen-units = 1
+lto = true
+opt-level = "z"
+panic = "abort"