3 releases
Uses new Rust 2024
| 0.1.2 | Nov 29, 2025 |
|---|---|
| 0.1.1 | Nov 28, 2025 |
| 0.1.0 | Nov 28, 2025 |
#1049 in GUI
Used in alerta-cli
195KB
1K
SLoC
A minimal, self-contained library for creating simple GUI dialogs ("message boxes") on X11.
Alerta can be used by applications that want to display a simple GUI message box to the user,
but don't want to pull in an entire GUI framework or invoke an external command like zenity.
There is also a small CLI tool that wraps this library, available in the alerta-cli package.
Examples
use alerta::{Icon, ButtonPreset};
let answer = alerta::alerta()
.title("Dialog Title")
.message("This text will appear inside the dialog window.\n\nIt can contain multiple lines of text that will be soft-wrapped to fit in the window.")
.icon(Icon::Warning)
.button_preset(ButtonPreset::YesNoCancel)
.show()?;
println!("{answer:?}");
Dependencies
~11–15MB
~344K SLoC