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 |
#775 in Rust patterns
114,250 downloads per month
Used in fewer than 222 crates
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-abortby @japaric
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.