
Systems
Rust Panics Without Std and Choosing a Panic Handler
In no_std a panic handler is mandatory. Compare panic-halt, panic-abort, panic-probe and a custom handler, and how panic = abort and the core panic machinery fit together.
3 min read
Tag
2 posts

In no_std a panic handler is mandatory. Compare panic-halt, panic-abort, panic-probe and a custom handler, and how panic = abort and the core panic machinery fit together.

no_std removes the standard library and leaves core. See what you lose, what core and alloc still give you, and how to write crates that work both ways.