#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 6723/week @ 2024-07-28 5694/week @ 2024-08-04 6349/week @ 2024-08-11 11738/week @ 2024-08-18 7714/week @ 2024-08-25 9727/week @ 2024-09-01 6538/week @ 2024-09-08 5072/week @ 2024-09-15 5535/week @ 2024-09-22 5450/week @ 2024-09-29 4695/week @ 2024-10-06 5575/week @ 2024-10-13 5865/week @ 2024-10-20 5754/week @ 2024-10-27 6069/week @ 2024-11-03 4438/week @ 2024-11-10

22,615 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