@@ -68,37 +68,28 @@ pub use poll::{Poll, Registry};
68
68
pub use token:: Token ;
69
69
pub use waker:: Waker ;
70
70
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" ) ) ) ) ]
76
73
pub mod unix {
77
74
//! Unix only extensions.
78
75
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.
88
80
89
- pub use crate :: sys:: pipe:: { new, Receiver , Sender } ;
90
- }
81
+ pub use crate :: sys:: pipe:: { new, Receiver , Sender } ;
91
82
}
83
+
84
+ pub use crate :: sys:: SourceFd ;
92
85
}
93
86
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 " ) ) ) ) ]
96
89
pub mod windows {
97
90
//! Windows only extensions.
98
91
99
- cfg_os_poll ! {
100
- pub use crate :: sys:: named_pipe:: NamedPipe ;
101
- }
92
+ pub use crate :: sys:: named_pipe:: NamedPipe ;
102
93
}
103
94
104
95
pub mod features {
@@ -115,17 +106,11 @@ pub mod features {
115
106
//!
116
107
//! This makes `Poll`, `Registry` and `Waker` functional.
117
108
//!
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)" ) ]
126
111
//!
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 .
129
114
//!
130
115
#![ cfg_attr( feature = "net" , doc = "## Network types (enabled)" ) ]
131
116
#![ cfg_attr( not( feature = "net" ) , doc = "## Network types (disabled)" ) ]
0 commit comments