aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-03 02:21:24 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-03 02:21:24 -0500
commitc4df4e065955ac20fd6b2d6a3e52be2f91848743 (patch)
treeb9649f0f6bd626dc025b4a681df59a7a390429ec
parent53dbbd035ffe86e4655c3afd36faa5752ded0737 (diff)
downloadpty-process-c4df4e065955ac20fd6b2d6a3e52be2f91848743.tar.gz
pty-process-c4df4e065955ac20fd6b2d6a3e52be2f91848743.zip
actually conditionalize on the backend-std feature
-rw-r--r--src/command.rs4
-rw-r--r--src/lib.rs4
-rw-r--r--src/pty.rs4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/command.rs b/src/command.rs
index 2f68786..d6c4b2d 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -3,10 +3,10 @@ use crate::pty::Pty as _;
use ::std::os::unix::io::AsRawFd as _;
-mod std;
-
#[cfg(any(feature = "backend-async-std", feature = "backend-smol"))]
mod async_process;
+#[cfg(feature = "backend-std")]
+mod std;
#[cfg(feature = "backend-tokio")]
mod tokio;
diff --git a/src/lib.rs b/src/lib.rs
index d189676..7d282ef 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,11 +5,11 @@ pub use error::{Error, Result};
mod pty;
pub use pty::Size;
-pub mod std;
-
#[cfg(feature = "backend-async-std")]
pub mod async_std;
#[cfg(feature = "backend-smol")]
pub mod smol;
+#[cfg(feature = "backend-std")]
+pub mod std;
#[cfg(feature = "backend-tokio")]
pub mod tokio;
diff --git a/src/pty.rs b/src/pty.rs
index 986b216..03a6217 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -2,10 +2,10 @@ use crate::error::*;
use ::std::os::unix::io::IntoRawFd as _;
-pub mod std;
-
#[cfg(any(feature = "backend-async-std", feature = "backend-smol"))]
pub mod async_io;
+#[cfg(feature = "backend-std")]
+pub mod std;
#[cfg(feature = "backend-tokio")]
pub mod tokio;