use tokio::process::Command for proxy commands
[?]
Jan 9, 2021, 11:37 AM
Y67GNDVBCXX5V3SL3OAQCU3NX52OR34NXK7ARKHK7EQDGCLVTHTQCDependencies
- [2]
2WEO7OZLVersion updates: getting rid of anyhow + moving to Tokio 1.0 - [3]
TFYJ3P2AVersion 0.30.8/0.19.4, and solving conflicts - [4]
7FRJYUI6Reboot because of a bad change - [5]
634OYCNMTokio 0.3 - [6]
ELRPPXSGFixing conflicts
Change contents
- edit in thrussh-config/src/proxy.rs at line 1
use futures::ready; - edit in thrussh-config/src/proxy.rs at line 4
use std::io::Read;use std::io::Write; - replacement in thrussh-config/src/proxy.rs at line 6
use std::process::{Command, Stdio};use std::process::Stdio; - edit in thrussh-config/src/proxy.rs at line 10
use tokio::process::Command; - replacement in thrussh-config/src/proxy.rs at line 15
Child(std::process::Child),Child(tokio::process::Child), - replacement in thrussh-config/src/proxy.rs at line 45
Stream::Child(ref mut c) => {match c.stdout.as_mut().unwrap().read(buf.initialize_unfilled()) {Ok(n) => {buf.advance(n);Poll::Ready(Ok(()))}Err(e) => Poll::Ready(Err(e)),}}Stream::Child(ref mut c) => Pin::new(c.stdout.as_mut().unwrap()).poll_read(cx, buf), - replacement in thrussh-config/src/proxy.rs at line 58
Stream::Child(ref mut c) => match c.stdin.as_mut().unwrap().write(buf) {Ok(n) => Poll::Ready(Ok(n)),Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => Poll::Pending,Err(e) => Poll::Ready(Err(e)),},Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_write(cx, buf), - replacement in thrussh-config/src/proxy.rs at line 65
Stream::Child(ref mut c) => match c.stdin.as_mut().unwrap().flush() {Ok(_) => Poll::Ready(Ok(())),Err(ref e) if e.kind() == std::io::ErrorKind::WouldBlock => Poll::Pending,Err(e) => Poll::Ready(Err(e)),},Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_flush(cx), - replacement in thrussh-config/src/proxy.rs at line 76
c.stdin.take();ready!(Pin::new(c.stdin.as_mut().unwrap()).poll_shutdown(cx))?;drop(c.stdin.take()); - replacement in thrussh-config/Cargo.toml at line 15
tokio = { version = "1.0", features = [ "io-util", "net", "macros" ] }tokio = { version = "1.0", features = [ "io-util", "net", "macros", "process" ] } - edit in thrussh/src/client/proxy.rs at line 5
use std::process::Command; - edit in thrussh/src/client/proxy.rs at line 8
use tokio::process::Command; - replacement in thrussh/src/client/proxy.rs at line 13
Child(std::process::Child),Child(tokio::process::Child), - replacement in thrussh/src/client/proxy.rs at line 36
Stream::Child(ref mut c) => {let n = c.stdout.as_mut().unwrap().read(buf.initialize_unfilled())?;buf.advance(n);Poll::Ready(Ok(()))}Stream::Child(ref mut c) => Pin::new(c.stdout.as_mut().unwrap()).poll_read(cx, buf), - replacement in thrussh/src/client/proxy.rs at line 49
Stream::Child(ref mut c) => Poll::Ready(c.stdin.as_mut().unwrap().write(buf)),Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_write(cx, buf), - replacement in thrussh/src/client/proxy.rs at line 59
Stream::Child(_) => Poll::Ready(Ok(())),Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_flush(cx), - replacement in thrussh/src/client/proxy.rs at line 69
Stream::Child(_) => Poll::Ready(Ok(())),Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_shutdown(cx), - replacement in thrussh/Cargo.toml at line 51
tokio = { version = "1.0", features = [ "io-util", "rt-multi-thread", "time", "net", "sync", "macros" ] }tokio = { version = "1.0", features = [ "io-util", "rt-multi-thread", "time", "net", "sync", "macros", "process" ] }