lazy-panic.rs

Build Status Crates.io Documentation

Provides lazy utilities to lazily set custom panic hook

Available features

Example

Setup simple panic message

```rust

[macro_import]

extern crate lazy_panic;

fn main() { setpanicmessage!(lazy_panic::formatter::Simple);

//prints `Panic: main.rs:8 - LOLKA\n`
painic!("LOLKA");

set_panic_message!(lazy_panic::formatter::Debug);
//prints `{Backtrace}\nPanic: main.rs:12 - LOLKA\n`
painic!("LOLKA");

}