#egui #toast

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

#77 in GUI

Download history 1869/week @ 2025-01-31 1940/week @ 2025-02-07 1712/week @ 2025-02-14 2787/week @ 2025-02-21 2435/week @ 2025-02-28 2650/week @ 2025-03-07 2698/week @ 2025-03-14 2613/week @ 2025-03-21 2175/week @ 2025-03-28 2570/week @ 2025-04-04 1562/week @ 2025-04-11 1151/week @ 2025-04-18 1121/week @ 2025-04-25 1296/week @ 2025-05-02 1367/week @ 2025-05-09 1269/week @ 2025-05-16

5,320 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–9MB
~88K SLoC