expect-dialog

Crates.ioexpect-dialog
lib.rsexpect-dialog
version1.0.1
sourcesrc
created_at2023-06-10 22:58:18.626269
updated_at2023-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
homepagehttps://github.com/CorneliusCornbread/expect-dialog-rs
repositoryhttps://github.com/CorneliusCornbread/expect-dialog-rs
max_upload_size
id887121
size5,514
Cornelius (CorneliusCornbread)

documentation

README

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

Commit count: 17

cargo fmt