#egui #toast #notifications

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

#72 in GUI

Download history 1234/week @ 2024-12-15 674/week @ 2024-12-22 841/week @ 2024-12-29 1334/week @ 2025-01-05 1758/week @ 2025-01-12 1358/week @ 2025-01-19 1318/week @ 2025-01-26 2009/week @ 2025-02-02 1785/week @ 2025-02-09 1725/week @ 2025-02-16 3064/week @ 2025-02-23 2348/week @ 2025-03-02 2933/week @ 2025-03-09 2545/week @ 2025-03-16 2050/week @ 2025-03-23 2716/week @ 2025-03-30

10,563 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
~90K SLoC