From a34f691563300511f291883dd5642de6876d4dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Pakalns?= Date: Thu, 10 Oct 2024 21:24:15 +0300 Subject: [PATCH] feat: egui 0.29 support (#54) --- Cargo.toml | 1 + src/lib.rs | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8fa2ad5..10e7b41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ exclude = ["assets/", "src/themes.rs.tera"] egui26 = { version = "0.26", package = "egui", default-features = false, optional = true } egui27 = { version = "0.27", package = "egui", default-features = false, optional = true } egui28 = { version = "0.28", package = "egui", default-features = false, optional = true } +egui29 = { version = "0.29", package = "egui", default-features = false, optional = true } [dev-dependencies] eframe = "0.26" diff --git a/src/lib.rs b/src/lib.rs index edc0b78..6e2ce0d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,7 +30,12 @@ //! ``` //! -#[cfg(not(any(feature = "egui26", feature = "egui27", feature = "egui28")))] +#[cfg(not(any( + feature = "egui26", + feature = "egui27", + feature = "egui28", + feature = "egui29" +)))] compile_error!("at least one egui version must be enabled"); #[cfg(feature = "egui26")] @@ -39,6 +44,8 @@ use egui26 as egui; use egui27 as egui; #[cfg(feature = "egui28")] use egui28 as egui; +#[cfg(feature = "egui29")] +use egui29 as egui; use egui::{epaint, style};