#exit #panic #panic-handler

no-std dev panic-halt

Set panicking behavior to halt

6 releases (1 stable)

1.0.0 Oct 25, 2024
0.2.0 Sep 9, 2018
0.1.3 Sep 7, 2018
0.1.2 Aug 29, 2018

#12 in No standard library

Download history 6948/week @ 2024-08-22 9577/week @ 2024-08-29 8218/week @ 2024-09-05 5218/week @ 2024-09-12 5107/week @ 2024-09-19 5737/week @ 2024-09-26 4741/week @ 2024-10-03 4907/week @ 2024-10-10 6156/week @ 2024-10-17 5813/week @ 2024-10-24 5694/week @ 2024-10-31 5552/week @ 2024-11-07 4993/week @ 2024-11-14 5849/week @ 2024-11-21 4718/week @ 2024-11-28 5103/week @ 2024-12-05

21,611 downloads per month
Used in 202 crates

MIT/Apache

7KB

panic-halt

Set the panicking behavior to halt, based on panic-abort by @japaric

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Set the panicking behavior to halt

This crate contains an implementation of panic_fmt that simply halt in an infinite loop.

Usage

#![no_std]

extern crate panic_halt;

fn main() {
    panic!("argument is ignored");
}

Breakable symbols

With the panic handler being #[inline(never)] the symbol rust_begin_unwind will be available to place a breakpoint on to halt when a panic is happening.

No runtime deps