#dialog

expect-dialog

A simple utility for error handling that uses a dialog for it's notification as opposed to just stdout

2 stable releases

1.0.1 Jun 16, 2023
1.0.0 Jun 10, 2023

#842 in GUI

MIT license

4KB
53 lines

expect-dialog-rs

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.

Note:

For tests expect-dialog will revert to their non dialog counterparts and will function without creating dialogs.

Install

cargo add expect-dialog

Example

use expect-dialog::ExpectDialog

fn main() {
    let f: Option<bool> = None;
    f.expect_dialog("Value not present");
}

image

Dependencies

~0.6–9.5MB
~106K SLoC