Where is the panic_abort in build_std=std,panic_abort documented?

Hey there.

If you want to run shared memory serviceworkers in wasm, such as for wasm_bingden_rayon, wasm_threads etc, then the above is required (in addition to enabling features).

However, while I understand the std argument easily enough from the documentation, I have even after long seraching not really been able to nail down what the panic_abort does.

I mean, obviously, the name is a hint. But is panic_abort a crate in rust-src, or where is that name specified? How precisely does this influence things (will that abort just in the std crate or also for my own panics?) And are there alternatives/where would I find these?

std and panic_abort are both names of libraries that are part of the standard Rust sysroot. The panic_abort library provides one of the two default panic runtimes. It is linked by default in programs compiled with the panic="abort" setting.

See also RFC 1513: Pluggable panic implementations.

4 Likes