From b859dde0c8e1f8af5f457c2313970381b7b52ce0 Mon Sep 17 00:00:00 2001 From: Sashanoraa Date: Sun, 27 Jul 2025 16:16:25 -0400 Subject: [PATCH] Add firmware-devel profile to cargo config This speeds up compile time in exchange for binary size, which is often a worthy trade-off in development when iteration speed matters. --- .cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index b35f67e..fde396f 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -36,6 +36,11 @@ lto = "fat" opt-level = "z" strip = "debuginfo" +[profile.firmware-devel] +inherits = "release" +opt-level = "s" +lto = false + # optimizations to reduce the binary size of firmware binaries [profile.firmware] inherits = "release"