#exception #lib #extension #error #writting #contributions #eh-personality

nightly rmin-eh

A minimal Rust lib for writting R extensions. Here is some fragments from std crate that provide a eh_personality lang-item. If you have another better eh_personality lang-item, just use a [patch] section to override this crate should cause no error. The only contribution of mine is change crate:: prefix to core::.

1 unstable release

0.0.1 Jun 8, 2024

#4 in #writting


Used in rmin

MIT/Apache

31KB
474 lines

This module contains the implementation of the eh_personality lang item.

The actual implementation is heavily dependent on the target since Rust tries to use the native stack unwinding mechanism whenever possible.

This personality function is still required with -C panic=abort because it is used to catch foreign exceptions from extern "C-unwind" and turn them into aborts.

Additionally, ARM EHABI uses the personality function when generating backtraces.

Dependencies