5 unstable releases

0.3.0 Dec 10, 2019
0.2.1 Jun 30, 2019
0.2.0 Jan 11, 2019
0.1.1 Jan 10, 2019
0.1.0 Jan 8, 2019

#518 in Command-line interface

Download history 155/week @ 2024-06-18 109/week @ 2024-06-25 67/week @ 2024-07-02 146/week @ 2024-07-09 138/week @ 2024-07-16 173/week @ 2024-07-23 185/week @ 2024-07-30 199/week @ 2024-08-06 162/week @ 2024-08-13 224/week @ 2024-08-20 309/week @ 2024-08-27 681/week @ 2024-09-03 675/week @ 2024-09-10 701/week @ 2024-09-17 684/week @ 2024-09-24 629/week @ 2024-10-01

2,815 downloads per month
Used in 6 crates

MIT license

41KB
754 lines

dialog-rs

A Rust library for displaying dialog boxes using various backends.

Documentation

Currently dialog-rs supports input, message, password and question dialogs. It can use the dialog, kdialog, or zenity tools to display the dialog boxes. If none of these tools is available, the dialogs are printed to the standard output.

Example

use dialog::DialogBox;

let choice = dialog::Question::new("Would you like to install Rust?")
    .title("Rust Installation")
    .show()
    .expect("Could not display dialog box");
if choice == dialog::Choice::Yes {
    dialog::Message::new("You made the right choice!")
        .title("Rust Installation")
        .show()
        .expect("Could not display dialog box");
}

Contact

For bug reports, patches, feature requests or other messages, please send a mail to dialog-rs-dev@ireas.org.

License

This project is licensed under the MIT License.

dialog-rs complies with version 3.0 of the REUSE specification.

Dependencies

~78–530KB