From f69487853a55860951e996f9b4ac8ebce2210613 Mon Sep 17 00:00:00 2001 From: rbomze <14312790+rbomze@users.noreply.github.com> Date: Sat, 8 Mar 2025 20:58:27 +0100 Subject: [PATCH] minimized the binary size --- .cargo/config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 16df86f..318eb3d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,11 @@ [target.armv7-unknown-linux-gnueabihf] linker = "arm-linux-gnueabihf-gcc" rustflags = ["-C", "target-feature=+crt-static"] + +# optimizations to reduce the binary size +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort"