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