Registry / utility / panic-abort

panic-abort

JSON →
library0.3.2rscratesunverified

Sets the panicking behavior to abort the process instead of unwinding.

# Cargo.toml [dependencies] panic-abort = "0.3.2"
INSTALL
IMPORT
SIG · PANIC-ABORT
P
panic-abort
utilityrustv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

register
use panic_abort::register;

Registers an abort-on-panic handler.

use panic_abort::register; fn main() { register(); panic!("This will abort the process"); }
Debug
Known issues
gotchaOnly works on nightly Rust.
fix
Use `#![feature(panic_abort)]` in your crate or switch to stable alternatives.
affects: >=0.3.0
Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
panic-abort — cargo add panic-abort · libregistry