aports/testing/cargo-chef/reduce-size.patch
2025-01-14 13:39:10 +00:00

14 lines
283 B
Diff

diff --git a/Cargo.toml b/Cargo.toml
index db7332f..732dec4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -38,3 +38,9 @@ cargo_metadata = "0.15"
assert_cmd = "2"
assert_fs = "1.0.0"
predicates = "3"
+
+[profile.release]
+strip = true
+opt-level = "z"
+codegen-units = 1
+lto = true