From 6b5bf76f565be7727d3bc624589e6b728e93106b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 24 Feb 2021 00:21:09 -0500 Subject: rename features --- src/command.rs | 4 ++-- src/lib.rs | 4 ++-- src/pty.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3-54-g00ecf