From c0986823af246ccee2247b881974a2b7ce6ee491 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Sun, 12 Jan 2025 03:58:01 -0600 Subject: add some logging and stuff --- ozone-cli/Cargo.toml | 6 +++++- ozone-cli/src/main.rs | 12 +++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'ozone-cli') diff --git a/ozone-cli/Cargo.toml b/ozone-cli/Cargo.toml index c4b3dd0..730a37f 100644 --- a/ozone-cli/Cargo.toml +++ b/ozone-cli/Cargo.toml @@ -4,4 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -sysinfo = { version = "0.33.1", features = ["system", "multithread"] } \ No newline at end of file +sysinfo = { version = "0.33.1", features = ["system", "multithread"] } +o3launcher = { path = ".." } +tokio = { version = "1.43.0", features = ["rt", "rt-multi-thread", "macros"] } +tokio-macros = "2.5.0" +simple_logger = { version = "5.0.0", features = ["colors"] } diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs index b3f91f1..dbe591a 100644 --- a/ozone-cli/src/main.rs +++ b/ozone-cli/src/main.rs @@ -1,8 +1,18 @@ use std::env::consts::{ARCH, OS}; +use std::error::Error; +use std::path::PathBuf; use sysinfo::System; -fn main() { +#[tokio::main] +async fn main() -> Result<(), Box> { + simple_logger::SimpleLogger::new().init().unwrap(); + println!("Hello, world!"); println!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch()); println!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>()); + + let launcher = o3launcher::launcher::Launcher::new(PathBuf::from("./work").as_path(), true).await?; + println!("ok"); + + Ok(()) } -- cgit v1.2.3-70-g09d2