Compare commits

..

2 Commits

Author SHA1 Message Date
Greg Shuflin
04f4af5f79 floem 2024-10-20 19:50:36 -07:00
Greg Shuflin
c6ba961faa floem, gpui 2024-10-20 19:44:47 -07:00
5 changed files with 1317 additions and 89 deletions

1385
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,7 @@ edition = "2021"
[dependencies] [dependencies]
anyhow = "1.0.89" anyhow = "1.0.89"
clap = { version = "4.5.20", features = ["derive"] } clap = { version = "4.5.20", features = ["derive"] }
floem = { git = "https://github.com/lapce/floem", branch = "main" }
iced = "0.13.1" iced = "0.13.1"
iced-tetris = { git = "https://code.everydayimshuflin.com/greg/tetres" } iced-tetris = { git = "https://code.everydayimshuflin.com/greg/tetres" }

7
src/floem.rs Normal file
View File

@ -0,0 +1,7 @@
use anyhow::Result;
pub(crate) fn main() -> Result<()> {
Ok(())
}

7
src/gpui.rs Normal file
View File

@ -0,0 +1,7 @@
use anyhow::Result;
pub(crate) fn main() -> Result<()> {
Ok(())
}

View File

@ -1,3 +1,5 @@
mod floem;
mod gpui;
mod iced; mod iced;
use anyhow::{anyhow, Result}; use anyhow::{anyhow, Result};
@ -15,6 +17,8 @@ enum Command {
IcedTetris, IcedTetris,
Egui, Egui,
Druid, Druid,
Gpui,
Floem
} }
fn main() -> Result<()> { fn main() -> Result<()> {
@ -25,6 +29,8 @@ fn main() -> Result<()> {
Command::IcedTetris => iced_tetris::tetris_main().map_err(|err| anyhow!(err)), Command::IcedTetris => iced_tetris::tetris_main().map_err(|err| anyhow!(err)),
Command::Egui => egui_main(), Command::Egui => egui_main(),
Command::Druid => druid_main(), Command::Druid => druid_main(),
Command::Gpui => gpui::main(),
Command::Floem => floem::main(),
} }
} }