#panic-handler #panic #halt

no-std dev panic-halt

Set panicking behavior to halt

5 releases

Uses old Rust 2015

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

#109 in No standard library

Download history 4115/week @ 2021-08-09 2763/week @ 2021-08-16 3241/week @ 2021-08-23 2714/week @ 2021-08-30 4323/week @ 2021-09-06 4952/week @ 2021-09-13 5451/week @ 2021-09-20 5794/week @ 2021-09-27 6685/week @ 2021-10-04 7951/week @ 2021-10-11 6600/week @ 2021-10-18 5753/week @ 2021-10-25 4071/week @ 2021-11-01 4418/week @ 2021-11-08 3223/week @ 2021-11-15 3281/week @ 2021-11-22

15,525 downloads per month
Used in less than 132 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