diff options
| author | 2025-01-12 03:58:01 -0600 | |
|---|---|---|
| committer | 2025-01-12 03:58:01 -0600 | |
| commit | c0986823af246ccee2247b881974a2b7ce6ee491 (patch) | |
| tree | 9dcb8a66692d5c0067450c60e1de72bd4fce92a5 /ozone-cli | |
| parent | use a macro for map_err (diff) | |
add some logging and stuff
Diffstat (limited to 'ozone-cli')
| -rw-r--r-- | ozone-cli/Cargo.toml | 6 | ||||
| -rw-r--r-- | ozone-cli/src/main.rs | 12 |
2 files changed, 16 insertions, 2 deletions
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<dyn Error>> { + 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(()) } |
