summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-11 03:45:09 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-11 03:45:09 -0500
commitcf04fbb6427eb10332c5bc143cc453aa2906e84c (patch)
tree510842eab7a2edff5b35542e5f9449a5621dd661
parent57a9e97dcab66c9f13331280335841b3d098b0b5 (diff)
downloadnbsh-cf04fbb6427eb10332c5bc143cc453aa2906e84c.tar.gz
nbsh-cf04fbb6427eb10332c5bc143cc453aa2906e84c.zip
move to unstable async-std
apparently this is the only way i will get an async condvar
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml3
-rw-r--r--src/history.rs2
3 files changed, 3 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 1dc79fa..a08ee94 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -119,6 +119,7 @@ dependencies = [
"async-global-executor",
"async-io",
"async-lock",
+ "async-process",
"crossbeam-utils",
"futures-channel",
"futures-core",
@@ -375,7 +376,6 @@ name = "nbsh"
version = "0.1.0"
dependencies = [
"anyhow",
- "async-process",
"async-std",
"futures-lite",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index 9971030..4328f71 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,8 +7,7 @@ license = "MIT"
[dependencies]
anyhow = "1.0.45"
-async-process = "1.3.0"
-async-std = "1.10.0"
+async-std = { version = "1.10.0", features = ["unstable"] }
futures-lite = "1.12.0"
libc = "0.2.107"
nix = "0.23.0"
diff --git a/src/history.rs b/src/history.rs
index 50e5ca7..58de34c 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -19,7 +19,7 @@ impl History {
pub async fn run(&mut self, cmd: &str) -> anyhow::Result<usize> {
let (exe, args) = parse_cmd(cmd);
- let mut process = async_process::Command::new(&exe);
+ let mut process = async_std::process::Command::new(&exe);
process.args(&args);
let child = process
.spawn_pty(Some(&pty_process::Size::new(24, 80)))