Factored out crates for web version

This commit is contained in:
2025-07-03 09:00:37 +02:00
parent 79267ee5e9
commit df056b7b2c
9 changed files with 105 additions and 67 deletions

View File

@@ -0,0 +1,10 @@
[package]
name = "mandelia_native"
version = "0.1.0"
edition = "2024"
[dependencies]
mandelia_ui = { path = "../mandelia_ui" }
eframe = { version = "0.31", features = ["wayland", "glow"] }
egui = "0.31"

View File

@@ -0,0 +1,17 @@
fn main() -> eframe::Result {
// mandelia::main()
let options = eframe::NativeOptions {
..eframe::NativeOptions::default()
};
eframe::run_native(
"Mandelia",
options,
Box::new(|cc| {
Ok(Box::new(mandelia_ui::App::new(cc)))
})
)
}
// this is backend-independent