@@ -68,37 +68,28 @@ pub use poll::{Poll, Registry};
6868pub use token:: Token ;
6969pub use waker:: Waker ;
7070
71- #[ cfg( all( unix, any( feature = "os-util" , feature = "pipe" ) ) ) ]
72- #[ cfg_attr(
73- docsrs,
74- doc( cfg( all( unix, any( feature = "os-util" , feature = "pipe" ) ) ) )
75- ) ]
71+ #[ cfg( all( unix, feature = "os-ext" ) ) ]
72+ #[ cfg_attr( docsrs, doc( cfg( all( unix, feature = "os-ext" ) ) ) ) ]
7673pub mod unix {
7774 //! Unix only extensions.
7875
79- #[ cfg( feature = "os-util" ) ]
80- #[ cfg_attr( docsrs, doc( cfg( all( unix, feature = "os-util" ) ) ) ) ]
81- pub use crate :: sys:: SourceFd ;
82-
83- cfg_pipe ! {
84- pub mod pipe {
85- //! Unix pipe.
86- //!
87- //! See the [`new`] function for documentation.
76+ pub mod pipe {
77+ //! Unix pipe.
78+ //!
79+ //! See the [`new`] function for documentation.
8880
89- pub use crate :: sys:: pipe:: { new, Receiver , Sender } ;
90- }
81+ pub use crate :: sys:: pipe:: { new, Receiver , Sender } ;
9182 }
83+
84+ pub use crate :: sys:: SourceFd ;
9285}
9386
94- #[ cfg( all( windows, feature = "os-util " ) ) ]
95- #[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "os-util " ) ) ) ) ]
87+ #[ cfg( all( windows, feature = "os-ext " ) ) ]
88+ #[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "os-ext " ) ) ) ) ]
9689pub mod windows {
9790 //! Windows only extensions.
9891
99- cfg_os_poll ! {
100- pub use crate :: sys:: named_pipe:: NamedPipe ;
101- }
92+ pub use crate :: sys:: named_pipe:: NamedPipe ;
10293}
10394
10495pub mod features {
@@ -115,17 +106,11 @@ pub mod features {
115106 //!
116107 //! This makes `Poll`, `Registry` and `Waker` functional.
117108 //!
118- #![ cfg_attr( feature = "os-util" , doc = "## `os-util` (enabled)" ) ]
119- #![ cfg_attr( not( feature = "os-util" ) , doc = "## `os-util` (disabled)" ) ]
120- //!
121- //! `os-util` enables additional OS specific facilities. Currently this
122- //! means the `unix` module (with `SourceFd`) becomes available.
123- //!
124- #![ cfg_attr( feature = "pipe" , doc = "## `pipe` (enabled)" ) ]
125- #![ cfg_attr( not( feature = "pipe" ) , doc = "## `pipe` (disabled)" ) ]
109+ #![ cfg_attr( feature = "os-ext" , doc = "## `os-ext` (enabled)" ) ]
110+ #![ cfg_attr( not( feature = "os-ext" ) , doc = "## `os-ext` (disabled)" ) ]
126111 //!
127- //! The `pipe` feature adds `unix::pipe`, and related types, a non-blocking
128- //! wrapper around the `pipe(2)` system call .
112+ //! `os-ext` enables additional OS specific facilities. These facilities can
113+ //! be found in the `unix` and `windows` module .
129114 //!
130115 #![ cfg_attr( feature = "net" , doc = "## Network types (enabled)" ) ]
131116 #![ cfg_attr( not( feature = "net" ) , doc = "## Network types (disabled)" ) ]
0 commit comments