From 4a7152edff362d762db45bea85a2b0ee4d2eefdb Mon Sep 17 00:00:00 2001 From: Adam Macdonald <72780006+twokilohertz@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:59:20 +0000 Subject: [PATCH] Add super-optimised release build profile --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 49b73e2..b470140 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,13 @@ rp235x-hal = { version = "0.2.0", features = [ "critical-section-impl", "binary-info", ] } + +# Super-optimised release build, maximum performance, minimal debuggability +# Build with cargo build --profile dist +[profile.dist] +inherits = "release" +opt-level = 3 +strip = "symbols" +lto = "fat" +overflow-checks = false +codegen-units = 1