1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/testing/xh/minimize-size.patch
2021-03-16 00:22:57 +01:00

14 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"