From 30ea400c0991e10a8f08231b6e7ecc8a4437e49d Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:07:15 +0000 Subject: [PATCH 1/2] fix: address compilation failures with tokio implicit feature --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ac32546..9514a20 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,24 +31,24 @@ mod rustix; #[cfg(all(unix, feature = "async-std"))] mod unix_async_std; -#[cfg(all(unix, feature = "tokio"))] +#[cfg(all(unix, feature = "use_tokio"))] mod unix_tokio; #[cfg(windows)] mod windows; #[cfg(all(windows, feature = "async-std"))] mod windows_async_std; -#[cfg(all(windows, feature = "tokio"))] +#[cfg(all(windows, feature = "use_tokio"))] mod windows_tokio; #[cfg(unix)] pub use crate::rustix::{socketpair_seqpacket, socketpair_stream, SocketpairStream}; #[cfg(all(unix, feature = "async-std"))] pub use crate::unix_async_std::{async_std_socketpair_stream, AsyncStdSocketpairStream}; -#[cfg(all(unix, feature = "tokio"))] +#[cfg(all(unix, feature = "use_tokio"))] pub use crate::unix_tokio::{tokio_socketpair_stream, TokioSocketpairStream}; #[cfg(windows)] pub use crate::windows::{socketpair_seqpacket, socketpair_stream, SocketpairStream}; #[cfg(all(windows, feature = "async-std"))] pub use crate::windows_async_std::{async_std_socketpair_stream, AsyncStdSocketpairStream}; -#[cfg(all(windows, feature = "tokio"))] +#[cfg(all(windows, feature = "use_tokio"))] pub use crate::windows_tokio::{tokio_socketpair_stream, TokioSocketpairStream}; From 58828c35adf447ecdd9b0dd8ec5c10cccea0ca84 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:08:52 +0000 Subject: [PATCH 2/2] fix: address compilation failures with async-std implicit feature --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9514a20..3b6c349 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,26 +29,26 @@ #[cfg(not(windows))] mod rustix; -#[cfg(all(unix, feature = "async-std"))] +#[cfg(all(unix, feature = "use_async_std"))] mod unix_async_std; #[cfg(all(unix, feature = "use_tokio"))] mod unix_tokio; #[cfg(windows)] mod windows; -#[cfg(all(windows, feature = "async-std"))] +#[cfg(all(windows, feature = "use_async_std"))] mod windows_async_std; #[cfg(all(windows, feature = "use_tokio"))] mod windows_tokio; #[cfg(unix)] pub use crate::rustix::{socketpair_seqpacket, socketpair_stream, SocketpairStream}; -#[cfg(all(unix, feature = "async-std"))] +#[cfg(all(unix, feature = "use_async_std"))] pub use crate::unix_async_std::{async_std_socketpair_stream, AsyncStdSocketpairStream}; #[cfg(all(unix, feature = "use_tokio"))] pub use crate::unix_tokio::{tokio_socketpair_stream, TokioSocketpairStream}; #[cfg(windows)] pub use crate::windows::{socketpair_seqpacket, socketpair_stream, SocketpairStream}; -#[cfg(all(windows, feature = "async-std"))] +#[cfg(all(windows, feature = "use_async_std"))] pub use crate::windows_async_std::{async_std_socketpair_stream, AsyncStdSocketpairStream}; #[cfg(all(windows, feature = "use_tokio"))] pub use crate::windows_tokio::{tokio_socketpair_stream, TokioSocketpairStream};