Crates.io | visualpanic-rs |
lib.rs | visualpanic-rs |
version | 0.1.2 |
source | src |
created_at | 2023-11-21 13:33:58.697991 |
updated_at | 2023-11-21 14:04:21.235554 |
description | A library providing a panic hook for Rust applications that visualizes the panic with a native error dialog on supported systems |
homepage | |
repository | https://github.com/philippremy/visualpanic-rs |
max_upload_size | |
id | 1044166 |
size | 10,329 |
A library providing a panic hook for Rust applications that visualizes the panic with a native error dialog on supported systems (see listed OSes at native-dialog).
cargo add visualpanic_rs
use visualpanic_rs::VisualPanic;
fn main() {
VisualPanic::default().register_global();
}
use visualpanic_rs::VisualPanic;
use visualpanic_rs::VisualPanicLevel;
fn main() {
VisualPanic::new(
Some("path/to/custom_icon.png"),
Some("Custom Title"),
Some(VisualPanicLevel::Info))
.register_global();
}