From d89db9eff05fcd233c8758efc9e5fada32439f94 Mon Sep 17 00:00:00 2001 From: Ericson Soares Date: Thu, 27 Jun 2024 17:02:46 -0300 Subject: [PATCH] Re-enable unwind on release profile --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 349d571ad..af4b3de75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -143,7 +143,7 @@ incremental = false # Optimize release builds [profile.release] -panic = "abort" # Strip expensive panic clean-up logic +panic = "unwind" # Sadly we need unwind to avoid unexpected crashes on third party crates codegen-units = 1 # Compile crates one after another so the compiler can optimize better lto = true # Enables link to optimizations opt-level = "s" # Optimize for binary size