feat: make main tokio async
This commit is contained in:
parent
27b8aa7e11
commit
8080bb2dde
2 changed files with 6 additions and 3 deletions
|
@ -6,7 +6,7 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
#bytes = "1.9"
|
#bytes = "1.9"
|
||||||
#clap = { version = "4.5", features = ["cargo", "derive"] }
|
#clap = { version = "4.5", features = ["cargo", "derive"] }
|
||||||
#color-eyre = "0.6"
|
color-eyre = "0.6"
|
||||||
#derive_more = { version = "1.0", features = [
|
#derive_more = { version = "1.0", features = [
|
||||||
# "as_ref",
|
# "as_ref",
|
||||||
# "constructor",
|
# "constructor",
|
||||||
|
@ -18,7 +18,7 @@ edition = "2021"
|
||||||
## kxio = "3.1"
|
## kxio = "3.1"
|
||||||
#serde = { version = "1.0", features = ["derive"] }
|
#serde = { version = "1.0", features = ["derive"] }
|
||||||
#serde_json = "1.0"
|
#serde_json = "1.0"
|
||||||
#tokio = { version = "1.41", features = ["full"] }
|
tokio = { version = "1.41", features = ["full"] }
|
||||||
#toml = "0.8"
|
#toml = "0.8"
|
||||||
#tracing= "0.1"
|
#tracing= "0.1"
|
||||||
#tracing-subscriber = "0.3"
|
#tracing-subscriber = "0.3"
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
//
|
//
|
||||||
|
use color_eyre::Result;
|
||||||
|
|
||||||
|
#[tokio::main]
|
||||||
#[cfg_attr(test, mutants::skip)]
|
#[cfg_attr(test, mutants::skip)]
|
||||||
fn main() {
|
async fn main() -> Result<()> {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue