summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorkxt <ktamas@fastmail.fm>2021-05-24 15:00:49 +0200
committerGitHub <noreply@github.com>2021-05-24 15:00:49 +0200
commit2168793dc75380a485faa4d470489d3d8baed0dc (patch)
tree3360d4aae1b08e5576ab51adef7cd58138b92670 /Cargo.lock
parent193331062655c4a0b79cf9433157ec8526c4b29f (diff)
fix(pty): use async io to avoid polling (#523)
This patch fixes #509 by using async read instead of polling a non-blocking fd. This reduces CPU usage when the ptys are idle.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock12
1 files changed, 12 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 48aa2bf2c..0dda83734 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -171,6 +171,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0"
[[package]]
+name = "async-trait"
+version = "0.1.50"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
name = "atomic-waker"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2308,6 +2319,7 @@ name = "zellij-server"
version = "0.12.0"
dependencies = [
"ansi_term 0.12.1",
+ "async-trait",
"daemonize",
"insta",
"serde_json",