From 3a24dcec53e37c9d1d86ea3bb5da119935b6deac Mon Sep 17 00:00:00 2001 From: ju6ge Date: Thu, 11 Sep 2025 19:55:20 +0200 Subject: [PATCH] add release profile --- rust/Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 80488db..fcb701f 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -17,6 +17,16 @@ incremental = true opt-level = 2 +[profile.release] +# Explicitly disable LTO which the Xtensa codegen backend has issues +lto = false +strip = true +debug = false +overflow-checks = false +panic = "abort" +incremental = true +opt-level = "z" + [package.metadata.cargo_runner] # The string `$TARGET_FILE` will be replaced with the path from cargo. command = [