mirror of
https://github.com/pythops/bluetui.git
synced 2026-05-06 13:31:35 +08:00
refactor: use single-threaded tokio and only pull in features we use
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -2053,9 +2053,7 @@ dependencies = [
|
||||
"bytes",
|
||||
"libc",
|
||||
"mio",
|
||||
"parking_lot",
|
||||
"pin-project-lite",
|
||||
"signal-hook-registry",
|
||||
"socket2",
|
||||
"tokio-macros",
|
||||
"windows-sys 0.61.2",
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user