From cc288895c8da0f70a3956daf98f9e5bb39a40cbb Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Fri, 11 Oct 2024 22:10:34 +0200 Subject: [PATCH] Force panic unwind implementation for users of rustler (#642) --- rustler/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rustler/Cargo.toml b/rustler/Cargo.toml index 55ca9886..3eef1853 100644 --- a/rustler/Cargo.toml +++ b/rustler/Cargo.toml @@ -28,6 +28,12 @@ rustler_sys = { path = "../rustler_sys", version = "~2.4.3" } num-bigint = { version = "0.4", optional = true } serde = { version = "1", optional = true } +[profile.dev] +panic = "unwind" + +[profile.release] +panic = "unwind" + [package.metadata.release] [[package.metadata.release.pre-release-replacements]]