1 parent f9bab23 commit dd5dbb1Copy full SHA for dd5dbb1
1 file changed
content/rust/crate_egui_toast.md
@@ -0,0 +1,19 @@
1
++++
2
+title="Crate egui-toast"
3
+date=2026-08-31
4
+extra = { series = "Rust" }
5
+taxonomies = { tags = ["Rust"] }
6
7
+
8
+# Add to an existing application
9
10
+See example [commit][example_commit] adding it to the template. And a few notes on below.
11
12
+1. Add `egui-toast` dependency
13
+ ```sh
14
+ cargo add egui-toast
15
+ ```
16
+2. Remove the `Debug` derive from any struct that will store the `egui_toast::Toasts` struct as it does not implement `Debug`.
17
+3. Ensure `toasts.show(ui);` is added to the end of the ui update loop so it shows on top of everything else.
18
19
+[example_commit]: https://github.com/c-git/egui_windowed_application_template/commit/00d4de5f81c7f916ef291933e176b8e195504888
0 commit comments