aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorMroik <mroik@delayed.space>2026-04-11 05:14:41 +0200
committerMroik <mroik@delayed.space>2026-04-13 06:56:11 +0200
commit203f02b88e75a9b604b27922aecaceb31c44d20a (patch)
tree99dc845bc8d6a5fd3a4ede70fa70b0d58390a60e /Cargo.toml
parentffc0ad7c86408193b213c46cbca5c0d8b60f8632 (diff)
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 <mroik@delayed.space>
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml2
1 files changed, 1 insertions, 1 deletions
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"] }
XMR address: 854DmXNrxULU3ZFJVs4Wc8PFhbq29RhqHhY8W6cdWrtFN3qmooKyyeYPcDzZTNRxphhJ5UzASQfAdEMwSteVqymk28aLhqj