-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Description
Currently, rust-jack does not catch panics at the FFI boundary, resulting in possible unsafety / undefined behaviour.
(c.f. the docs for std::panic::catch_unwind:)
It is currently undefined behavior to unwind from Rust code into foreign code, so this function is particularly useful when Rust is called from another language (normally C). This can run arbitrary Rust code, capturing a panic and allowing a graceful handling of the error.
xkr47 and FreeFullBe-ing