mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
14 lines
326 B
Diff
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"
|