summaryrefslogtreecommitdiffstats
path: root/tokio/src/process
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-10-26 08:02:49 -0700
committerGitHub <noreply@github.com>2019-10-26 08:02:49 -0700
commit987ba7373cf95c570bf23768c6021f7a7508286e (patch)
tree616c62a65cb6b0c7e4c3e31f92f01c8d4749b0c3 /tokio/src/process
parent227533d456fe32e48ffcd3796f1e6c8f9318b230 (diff)
io: move into `tokio` crate (#1691)
A step towards collapsing Tokio sub crates into a single `tokio` crate (#1318). The `io` implementation is now provided by the main `tokio` crate. Functionality can be opted out of by using the various net related feature flags.
Diffstat (limited to 'tokio/src/process')
-rw-r--r--tokio/src/process/mod.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs
index 74ddacbc..14ffd20e 100644
--- a/tokio/src/process/mod.rs
+++ b/tokio/src/process/mod.rs
@@ -107,6 +107,21 @@
//! `tokio::process::Child` is dropped. The behavior of the standard library can
//! be regained with the [`Child::forget`](crate::process::Child::forget) method.
+#[path = "unix/mod.rs"]
+#[cfg(unix)]
+mod imp;
+
+#[path = "windows.rs"]
+#[cfg(windows)]
+mod imp;
+
+mod kill;
+
+use crate::io::{AsyncRead, AsyncReadExt, AsyncWrite};
+use crate::process::kill::Kill;
+
+use futures_core::TryFuture;
+use futures_util::try_future::try_join3;
use std::ffi::OsStr;
use std::future::Future;
use std::io;
@@ -120,21 +135,6 @@ use std::process::{Command as StdCommand, ExitStatus, Output, Stdio};
use std::task::Context;
use std::task::Poll;
-use self::kill::Kill;
-use futures_core::TryFuture;
-use futures_util::try_future::try_join3;
-use tokio_io::{AsyncRead, AsyncReadExt, AsyncWrite};
-
-#[path = "unix/mod.rs"]
-#[cfg(unix)]
-mod imp;
-
-#[path = "windows.rs"]
-#[cfg(windows)]
-mod imp;
-
-mod kill;
-
/// This structure mimics the API of [`std::process::Command`] found in the standard library, but
/// replaces functions that create a process with an asynchronous variant. The main provided
/// asynchronous functions are [spawn](Command::spawn), [status](Command::status), and