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

#216 in Rust patterns

Download history 6627/week @ 2024-12-17 3763/week @ 2024-12-24 5460/week @ 2024-12-31 7807/week @ 2025-01-07 6862/week @ 2025-01-14 7506/week @ 2025-01-21 6688/week @ 2025-01-28 10320/week @ 2025-02-04 9861/week @ 2025-02-11 8126/week @ 2025-02-18 9198/week @ 2025-02-25 9465/week @ 2025-03-04 9290/week @ 2025-03-11 9977/week @ 2025-03-18 8549/week @ 2025-03-25 5395/week @ 2025-04-01

34,983 downloads per month
Used in fewer than 205 crates

MIT/Apache

7KB

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.


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.

No runtime deps