#panic-handler #panic #halt

no-std dev panic-halt

Set panicking behavior to halt

5 releases

0.2.0 Sep 9, 2018
0.1.3 Sep 7, 2018
0.1.2 Aug 29, 2018
0.1.1 Aug 28, 2018
0.1.0 Aug 10, 2018

#97 in No standard library

Download history 620/week @ 2019-12-14 550/week @ 2019-12-21 736/week @ 2019-12-28 617/week @ 2020-01-04 1218/week @ 2020-01-11 521/week @ 2020-01-18 874/week @ 2020-01-25 892/week @ 2020-02-01 460/week @ 2020-02-08 755/week @ 2020-02-15 531/week @ 2020-02-22 493/week @ 2020-02-29 556/week @ 2020-03-07 700/week @ 2020-03-14 734/week @ 2020-03-21 695/week @ 2020-03-28

2,086 downloads per month
Used in 80 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