Compare commits
No commits in common. "d90980ddca8d0ced932e66f3848b2a0326420b55" and "833dc9ed3c4f26544dcd474ac74c40344cf9d4be" have entirely different histories.
d90980ddca
...
833dc9ed3c
9 changed files with 4 additions and 53 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -21,5 +21,3 @@ Cargo.lock
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
tmp/
|
tmp/
|
||||||
|
|
||||||
.DS_Store
|
|
|
@ -10,8 +10,6 @@ license = "MIT OR Apache-2.0"
|
||||||
repository = "https://forgejo.fireturlte.net/lazy-supplements"
|
repository = "https://forgejo.fireturlte.net/lazy-supplements"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
bevy = "0.16.1"
|
|
||||||
clap = { version = "4.5.38", features = ["derive"] }
|
|
||||||
dioxus = { version = "0.6.0", features = [] }
|
dioxus = { version = "0.6.0", features = [] }
|
||||||
lazy-supplements-core.path = "lazy-supplements-core"
|
lazy-supplements-core.path = "lazy-supplements-core"
|
||||||
libp2p = { version = "0.55.0", features = ["macros", "mdns", "noise", "ping", "tcp", "tokio", "yamux" ] }
|
libp2p = { version = "0.55.0", features = ["macros", "mdns", "noise", "ping", "tcp", "tokio", "yamux" ] }
|
||||||
|
|
|
@ -7,5 +7,4 @@ license.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy.workspace = true
|
|
||||||
dioxus.workspace = true
|
dioxus.workspace = true
|
|
@ -1,2 +1 @@
|
||||||
pub mod plain;
|
pub mod plain;
|
||||||
pub mod playful;
|
|
|
@ -1,11 +0,0 @@
|
||||||
use bevy::prelude::*;
|
|
||||||
|
|
||||||
pub fn hello_world_system() {
|
|
||||||
println!("hello world");
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn run_playful_app() {
|
|
||||||
App::new()
|
|
||||||
.add_systems(Update, hello_world_system)
|
|
||||||
.run();
|
|
||||||
}
|
|
|
@ -6,7 +6,6 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap.workspace = true
|
|
||||||
dioxus.workspace = true
|
dioxus.workspace = true
|
||||||
lazy-supplements-examples-core.path = "../core"
|
lazy-supplements-examples-core.path = "../core"
|
||||||
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
use clap::{Args, Parser};
|
|
||||||
|
|
||||||
#[derive(Debug, Parser)]
|
|
||||||
pub struct Cli {
|
|
||||||
#[command(flatten)]
|
|
||||||
pub gui_mode: GuiModeArgs
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Args, Debug)]
|
|
||||||
#[group(required=true, multiple = false)]
|
|
||||||
pub struct GuiModeArgs {
|
|
||||||
#[arg(long)]
|
|
||||||
pub plain: bool,
|
|
||||||
#[arg(long)]
|
|
||||||
pub playful: bool,
|
|
||||||
}
|
|
|
@ -1,18 +1,3 @@
|
||||||
use crate::cli::Cli;
|
|
||||||
use clap::Parser;
|
|
||||||
use lazy_supplements_examples_core::ui::playful::run_playful_app;
|
|
||||||
|
|
||||||
mod cli;
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
match Cli::try_parse() {
|
|
||||||
Ok(x) => {
|
|
||||||
if x.gui_mode.plain {
|
|
||||||
dioxus::launch(lazy_supplements_examples_core::ui::plain::App);
|
dioxus::launch(lazy_supplements_examples_core::ui::plain::App);
|
||||||
} else if x.gui_mode.playful {
|
|
||||||
run_playful_app();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
Err(e) => print!("{e}")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ default = []
|
||||||
test = ["lazy-supplements-core/test"]
|
test = ["lazy-supplements-core/test"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap.workspace = true
|
clap = { version = "4.5.38", features = ["derive"] }
|
||||||
dirs = "6.0.0"
|
dirs = "6.0.0"
|
||||||
lazy-supplements-core.workspace = true
|
lazy-supplements-core.workspace = true
|
||||||
libp2p.workspace = true
|
libp2p.workspace = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue