#egui #toast #egui-notify

egui-notify

Simple notifications library for egui

24 releases (breaking)

0.19.0 Feb 7, 2025
0.18.0 Dec 18, 2024
0.17.0 Oct 17, 2024
0.15.0 Jul 10, 2024
0.4.4 Nov 1, 2022

#69 in GUI

Download history 1309/week @ 2025-01-08 1791/week @ 2025-01-15 1135/week @ 2025-01-22 1608/week @ 2025-01-29 2272/week @ 2025-02-05 1662/week @ 2025-02-12 2088/week @ 2025-02-19 2735/week @ 2025-02-26 2297/week @ 2025-03-05 3214/week @ 2025-03-12 2623/week @ 2025-03-19 2131/week @ 2025-03-26 2742/week @ 2025-04-02 1626/week @ 2025-04-09 1082/week @ 2025-04-16 1180/week @ 2025-04-23

7,169 downloads per month
Used in 15 crates (12 directly)

MIT license

110KB
578 lines

egui-notify

Simple notifications library for egui

example_image

example_video

Usage

use egui_notify::Toasts;
use std::time::Duration;

// initialize once
let mut toasts = Toasts::default();
// somewhere within [egui::App::update]...
toasts.info("Hello world!").duration(Duration::from_secs(5));
// ...
toasts.show(ctx);

Installation

cargo add egui-notify
[dependencies]
egui-notify = "0.17.0"

Difference to egui-toast

egui-notify has

  • Animations for appearing/disappearing toasts
  • Duration meter for expiring toasts
  • Toast positioning not influenced by which Context you pass to it (like if for example, you passed in a Context already altered for an egui::Window)
  • Differing methodology (create Toasts instance once, save save somewhere in application state)
  • Threadsafe Toasts instance, implements Send, Sync.
  • No support for custom toasts

Dependencies

~4.5–9.5MB
~90K SLoC