diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 3 | ||||
-rw-r--r-- | src/history.rs | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -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", @@ -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))) |