Crates.io | expect-dialog |
lib.rs | expect-dialog |
version | 1.0.1 |
source | src |
created_at | 2023-06-10 22:58:18.626269 |
updated_at | 2023-06-16 23:15:39.762963 |
description | A simple utility for error handling that uses a dialog for it's notification as opposed to just stdout |
homepage | https://github.com/CorneliusCornbread/expect-dialog-rs |
repository | https://github.com/CorneliusCornbread/expect-dialog-rs |
max_upload_size | |
id | 887121 |
size | 5,514 |
A simple utility for error handling that uses a dialog for it's notification as opposed to only having terminal output.
Great for graphical applications which need to crash but want to inform the user of the crash.
For tests expect-dialog will revert to their non dialog counterparts and will function without creating dialogs.
cargo add expect-dialog
use expect-dialog::ExpectDialog
fn main() {
let f: Option<bool> = None;
f.expect_dialog("Value not present");
}