|
|
@ -721,9 +721,9 @@ No `transmute` required!
|
|
|
|
|
|
|
|
|
|
|
|
## FFI and unwinding
|
|
|
|
## FFI and unwinding
|
|
|
|
|
|
|
|
|
|
|
|
It’s important to be mindful of unwinding when working with FFI. Each
|
|
|
|
It’s important to be mindful of unwinding when working with FFI. Most
|
|
|
|
ABI comes in two variants, one with `-unwind` suffix and one without (except
|
|
|
|
ABI strings come in two variants, one with an `-unwind` suffix and one without.
|
|
|
|
the `Rust` ABI, which always permits unwinding).
|
|
|
|
The `Rust` ABI always permits unwinding, so there is no `Rust-unwind` ABI.
|
|
|
|
|
|
|
|
|
|
|
|
If you expect Rust `panic`s or foreign (e.g. C++) exceptions to cross an FFI
|
|
|
|
If you expect Rust `panic`s or foreign (e.g. C++) exceptions to cross an FFI
|
|
|
|
boundary, that boundary must use the appropriate `-unwind` ABI string.
|
|
|
|
boundary, that boundary must use the appropriate `-unwind` ABI string.
|
|
|
|