Closed
Description
Most of our rust-C ffi code uses pub extern "C" fn
, but these functions are not allowed by rust to panic (a panic is not allowed to cross the ffi boundary). While Shadow does do this and this is technically UB, it has seemed to work fine for us. But this may break in the future, so we should switch to pub extern "C-unwind" fn
instead.
See: