refactor: use single-threaded tokio and only pull in features we use

This commit is contained in:
Samuel Åkesson
2026-04-17 12:58:32 +02:00
parent 9d18fe7d7e
commit 63b3b185f9
3 changed files with 2 additions and 4 deletions

2
Cargo.lock generated
View File

@@ -2053,9 +2053,7 @@ dependencies = [
"bytes",
"libc",
"mio",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tokio-macros",
"windows-sys 0.61.2",

View File

@@ -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"] }

View File

@@ -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();