From 203f02b88e75a9b604b27922aecaceb31c44d20a Mon Sep 17 00:00:00 2001 From: Mroik Date: Sat, 11 Apr 2026 05:14:41 +0200 Subject: Replace std socket IO with tokio socket IO Since the TcpListener (and related) operations are blocking, they would prevent other tasks from running by monopolizing CPU time. This should've been done from the start but I'm not used to directly using low level primitives in an async environment as I would normally use a high level library for this, so I forgot. Signed-off-by: Mroik --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index cbd5e80..d48b275 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,4 +9,4 @@ env_logger = "0.11.10" libc = "0.2.184" log = "0.4.29" rusqlite = "0.39.0" -tokio = { version = "1.51.0", features = ["macros", "rt-multi-thread", "sync"] } +tokio = { version = "1.51.0", features = ["io-util", "macros", "net", "rt-multi-thread", "sync"] } -- cgit v1.3