From e64f4df7634ab07084ce4e5d8a959bd0369d693c Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 19 Apr 2024 23:47:14 -0400 Subject: [PATCH] add release-debuginfo cargo profile with limited debug and no strip Signed-off-by: strawberry --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5fec2159..a9b756da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -437,6 +437,13 @@ strip = "symbols" control-flow-guard = true # Windows only debug = 0 +# release profile with debug symbols +[profile.release-debuginfo] +inherits = "release" +strip = "none" +debug = "limited" + + # high performance release profile which uses fat LTO across all crates, 1 codegen unit, max opt-level, and optimises across all crates [profile.release-high-perf] inherits = "release"