Don't immediately abort on panic

This will change any panic into signle brk instruction and leave no message for debug.
This commit is contained in:
Wang Han
2026-03-08 11:17:46 +08:00
committed by GitHub
parent e8a58776f1
commit 058ba4f150

View File

@@ -61,12 +61,12 @@ unwrap_used = "deny"
[profile.dev]
opt-level = "z"
lto = "thin"
panic = "immediate-abort"
panic = "abort"
debug = "none"
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "immediate-abort"
panic = "abort"
strip = true