pub fn terminate_on_panic()
Expand description

Causes Rust to exit the process when any panic occurs. An alternative is to compile your binary and all dependencies with -Cpanic=abort, which will provide similar behavior and smaller libraries.