aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/Cargo.toml
diff options
context:
space:
mode:
authorhar7an <99636919+har7an@users.noreply.github.com>2026-02-19 11:59:14 +0000
committerGitHub <noreply@github.com>2026-02-19 12:59:14 +0100
commit3a9cf0a6d6b98dee0246e6fa5a539e1f6d546084 (patch)
tree5021050e1d0984de3ca27295bd6ed6b83058d9c1 /zellij-utils/Cargo.toml
parentfix: tab-bar wrapping for extremely small widths (#4728) (diff)
downloadsl0ppij-3a9cf0a6d6b98dee0246e6fa5a539e1f6d546084.tar.gz
sl0ppij-3a9cf0a6d6b98dee0246e6fa5a539e1f6d546084.tar.xz
sl0ppij-3a9cf0a6d6b98dee0246e6fa5a539e1f6d546084.zip
Purge `async_std` from the codebase (#4672)
* build(utils): Replace `async_std` with `tokio` removing an entire async runtime from the dependency tree. `tokio` has previously been required by `wasmtime` in any case, and the version of async_std we used was ancient (1.3) and relied on unstable features. * build(server): Remove `async_std` from the codebase and replace it with `tokio` instead, which is already used by `zellij-utils` and `wasmtime`. * build(server): Remove dead dependency. * fix: Don't keep an async runtime in the `zellij-utils` subcrate but prefer to reuse an existing runtime from a caller instead. If no such runtime exists, create an ephemeral runtime on the current thread to run async tasks instead. Ideally, the functions needing the async task would be async themselves, but these are called by the `Layout` code based on a `ClientMsg`, and the code handling this currently lives in `zellij-utils` and is sync itself. So, for the time being, there is no way around this runtime requirement without a huge refactoring. * refactor(server): Unclutter async tasks in a few cases where either blocking code was called in an (unnecessary) async task or an entire thread was spawned to block on the result of an async task. * docs(CHANGELOG): Mention PR 4672 * fix(server): Don't terminate when killing a panes children fails but log the error and continue instead. * feat: Add config option for number of async tasks to spawn so users on machines with few resources can configure a task limit without requiring recompilation.
Diffstat (limited to 'zellij-utils/Cargo.toml')
-rw-r--r--zellij-utils/Cargo.toml5
1 files changed, 3 insertions, 2 deletions
diff --git a/zellij-utils/Cargo.toml b/zellij-utils/Cargo.toml
index d736ba8f..d1db4945 100644
--- a/zellij-utils/Cargo.toml
+++ b/zellij-utils/Cargo.toml
@@ -41,7 +41,9 @@ uuid = { workspace = true }
sha2 = { workspace = true }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
-async-std = { workspace = true }
+tokio = { workspace = true }
+tokio-stream = { version = "0.1" }
+tokio-util = { version = "0.7", default-features = false, features = ["compat", "io"] }
log4rs = { version = "1.2.0", default-features = false, features = ["pattern_encoder", "rolling_file_appender", "compound_policy", "fixed_window_roller", "size_trigger"] }
termwiz = { workspace = true }
interprocess = { workspace = true }
@@ -53,7 +55,6 @@ suggest = { workspace = true }
names = { workspace = true }
rusqlite = { version = "0.30", default-features = false, features = ["bundled"], optional = true }
notify = { workspace = true }
-tokio = { workspace = true }
[dev-dependencies]
insta = { version = "1.6.0", features = ["backtrace"] }