From ba4f92f2008feebd9c2cb8ef7c3326bf27a601d6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Sep 2025 13:12:50 -0600 Subject: [PATCH] [rust] Change debugoptimized build to inherit dev instead of release I was getting useless profiler stacks with the previous setup. This one makes the debugoptimized build 30% slower than release in one of my benchmarks, but at least we get useful stacktraces by default. --- src/rust/Cargo.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index 6dea1b650..ce334aa07 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -25,9 +25,7 @@ overflow-checks = false codegen-units = 1 [profile.debugoptimized] -inherits = "release" -debug = true -strip = false +inherits = "dev" [profile.dev] lto = "fat"