1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/netavark/minimize-size.patch
2022-01-28 03:16:51 +00:00

14 lines
326 B
Diff

Minimize binary size
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,3 +40,9 @@ netlink-packet-route = "0.8.0"
[build-dependencies]
vergen = { version = "=6.0.0", default-features = false, features = ["build", "rustc", "git"] }
anyhow = "1.0"
+
+[profile.release]
+codegen-units = 1
+lto = true
+opt-level = "z"
+panic = "abort"