From cf04fbb6427eb10332c5bc143cc453aa2906e84c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 11 Nov 2021 03:45:09 -0500 Subject: move to unstable async-std apparently this is the only way i will get an async condvar --- Cargo.lock | 2 +- Cargo.toml | 3 +-- src/history.rs | 2 +- 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 { 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))) -- cgit v1.2.3-54-g00ecf