#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

#249 in No standard library

Download history 7886/week @ 2023-10-20 5199/week @ 2023-10-27 6114/week @ 2023-11-03 6784/week @ 2023-11-10 6398/week @ 2023-11-17 5967/week @ 2023-11-24 7098/week @ 2023-12-01 6470/week @ 2023-12-08 5399/week @ 2023-12-15 3794/week @ 2023-12-22 7060/week @ 2023-12-29 8950/week @ 2024-01-05 6417/week @ 2024-01-12 7918/week @ 2024-01-19 6240/week @ 2024-01-26 4151/week @ 2024-02-02

25,619 downloads per month
Used in fewer than 187 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