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
25,619 downloads per month
Used in fewer than 187 crates
7KB
panic-halt
Set the panicking behavior to halt, based on
panic-abort
by @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.
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.