There are two options at the moment [1]:
- panic=abort (uncatchable)
- panic=unwind.
With the latter, you would need a catch_unwind at the FFI boundary.[1] https://doc.rust-lang.org/cargo/reference/profiles.html#pani...