diff --git a/Cargo.lock b/Cargo.lock index a0771c4..5b0b76f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2053,9 +2053,7 @@ dependencies = [ "bytes", "libc", "mio", - "parking_lot", "pin-project-lite", - "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.61.2", diff --git a/Cargo.toml b/Cargo.toml index 3d46dbc..a6d38ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ crossterm = { version = "0.29", default-features = false, features = [ ] } futures = "0.3" ratatui = "0.30" -tokio = { version = "1", features = ["full"] } +tokio = { version = "1", features = ["macros", "rt"] } dirs = "6" toml = "0.9" serde = { version = "1", features = ["derive"] } diff --git a/src/main.rs b/src/main.rs index 471401b..13c787d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ use clap::Parser; use ratatui::{Terminal, backend::CrosstermBackend}; use std::{io, process::exit, sync::Arc}; -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() -> AppResult<()> { let args = cli::Args::parse();