Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for egui 0.28 #46

Closed
Resonanz opened this issue Jul 15, 2024 · 0 comments · Fixed by #44
Closed

Updates for egui 0.28 #46

Resonanz opened this issue Jul 15, 2024 · 0 comments · Fixed by #44

Comments

@Resonanz
Copy link

The following compiles and runs fine.

cargo.toml:

[dependencies]
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 }

[dev-dependencies]
eframe = "0.28"

[features]
default = ["egui28"]

Line 11 of todo.rs:

if let Err(e) = eframe::run_native("todos", native_options, Box::new(|_| Ok(Box::new(app)))) {

lib.rs, lines 33 onwards:

#[cfg(not(any(feature = "egui26", feature = "egui27", feature = "egui28")))]
compile_error!("at least one egui version must be enabled");

#[cfg(feature = "egui26")]
use egui26 as egui;
#[cfg(feature = "egui27")]
use egui27 as egui;
#[cfg(feature = "egui28")]
use egui28 as egui;
@sgoudham sgoudham linked a pull request Jul 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant