aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-24 00:21:09 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-24 00:21:09 -0500
commit6b5bf76f565be7727d3bc624589e6b728e93106b (patch)
tree15ab77e327dc190c6f93909b127f5b61b8b56ab9
parent0db59c294fafb44c967f4210630202a41e34cff4 (diff)
downloadpty-process-6b5bf76f565be7727d3bc624589e6b728e93106b.tar.gz
pty-process-6b5bf76f565be7727d3bc624589e6b728e93106b.zip
rename features
-rw-r--r--Cargo.toml8
-rw-r--r--src/command.rs4
-rw-r--r--src/lib.rs4
-rw-r--r--src/pty.rs4
4 files changed, 11 insertions, 9 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e1f75e8..c5840e5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,9 @@ tokio = { version = "1.2", optional = true, features = ["fs", "process"] }
smol = "*"
[features]
-default = ["std"]
+default = ["backend-std"]
-std = []
-async-std = ["async-io", "async-process"]
+backend-std = []
+backend-async-std = ["async-io", "async-process"]
+backend-smol = ["async-io", "async-process"]
+backend-tokio = ["tokio"]
diff --git a/src/command.rs b/src/command.rs
index 96ece15..e908a06 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -5,9 +5,9 @@ use ::std::os::unix::io::AsRawFd as _;
mod std;
-#[cfg(feature = "async-std")]
+#[cfg(any(feature = "backend-async-std", feature = "backend-smol"))]
mod async_process;
-#[cfg(feature = "tokio")]
+#[cfg(feature = "backend-tokio")]
mod tokio;
pub trait Command {
diff --git a/src/lib.rs b/src/lib.rs
index 76bbf9c..f16dcc9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,7 +7,7 @@ pub use pty::{Pty, Size};
pub mod std;
-#[cfg(feature = "async-std")]
+#[cfg(any(feature = "backend-async-std", feature = "backend-smol"))]
pub mod async_std;
-#[cfg(feature = "tokio")]
+#[cfg(feature = "backend-tokio")]
pub mod tokio;
diff --git a/src/pty.rs b/src/pty.rs
index b017225..07d6b2c 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -4,9 +4,9 @@ use ::std::os::unix::io::IntoRawFd as _;
pub mod std;
-#[cfg(feature = "async-std")]
+#[cfg(any(feature = "backend-async-std", feature = "backend-smol"))]
pub mod async_io;
-#[cfg(feature = "tokio")]
+#[cfg(feature = "backend-tokio")]
pub mod tokio;
pub trait Pty {