From a35c2c6964479e6b861827db9b685fb74124b70b Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 29 Nov 2024 14:31:40 +0000 Subject: [PATCH] feat: make main tokio async --- Cargo.toml | 4 ++-- src/main.rs | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f29bdf5..d989b2b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] #bytes = "1.9" #clap = { version = "4.5", features = ["cargo", "derive"] } -#color-eyre = "0.6" +color-eyre = "0.6" #derive_more = { version = "1.0", features = [ # "as_ref", # "constructor", @@ -18,7 +18,7 @@ edition = "2021" ## kxio = "3.1" #serde = { version = "1.0", features = ["derive"] } #serde_json = "1.0" -#tokio = { version = "1.41", features = ["full"] } +tokio = { version = "1.41", features = ["full"] } #toml = "0.8" #tracing= "0.1" #tracing-subscriber = "0.3" diff --git a/src/main.rs b/src/main.rs index f936016..ed56bf2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,9 @@ // +use color_eyre::Result; +#[tokio::main] #[cfg_attr(test, mutants::skip)] -fn main() { +async fn main() -> Result<()> { println!("Hello, world!"); + Ok(()) }