|
35 | 35 | //!
|
36 | 36 | //! ## Guide
|
37 | 37 | //!
|
38 |
| -//! A getting started guide is available in the |
39 |
| -# module." |
42 |
| -)] |
43 |
| -#![cfg_attr( |
44 |
| - not(feature = "extra-docs"), |
45 |
| - doc = "`guide` (only available when the `extra-docs` feature is enabled)." |
46 |
| -)] |
| 38 | +//! A getting started guide is available in the [`guide`] module. |
47 | 39 | //!
|
48 | 40 | //! ## Available features
|
49 | 41 | //!
|
50 |
| -//! The available features are described in the |
51 |
| -# module." |
54 |
| -)] |
55 |
| -#![cfg_attr( |
56 |
| - not(feature = "extra-docs"), |
57 |
| - doc = "`features` (only available when the `extra-docs` feature is enabled)." |
58 |
| -)] |
| 42 | +//! The available features are described in the [`features`] module. |
59 | 43 |
|
60 | 44 | // macros used internally
|
61 | 45 | #[macro_use]
|
@@ -117,8 +101,6 @@ pub mod windows {
|
117 | 101 | }
|
118 | 102 | }
|
119 | 103 |
|
120 |
| -// Enable with `cargo doc --features extra-docs`. |
121 |
| -#[cfg(feature = "extra-docs")] |
122 | 104 | pub mod features {
|
123 | 105 | //! # Mio's optional features.
|
124 | 106 | //!
|
@@ -160,17 +142,8 @@ pub mod features {
|
160 | 142 | //! : includes `UnixDatagram`, `UnixListener`, `UnixStream` and `SocketAddr`.
|
161 | 143 | //!
|
162 | 144 | //! All types can be found in the `net` module.
|
163 |
| - //! |
164 |
| - #![cfg_attr(feature = "extra-docs", doc = "## `extra-docs` (enabled)")] |
165 |
| - #![cfg_attr(not(feature = "extra-docs"), doc = "## `extra-docs` (disabled)")] |
166 |
| - //! |
167 |
| - //! This feature includes additional documentation such as this document and |
168 |
| - //! the getting started guide. It adds nothing in terms of types (only |
169 |
| - //! documentation). |
170 | 145 | }
|
171 | 146 |
|
172 |
| -// Enable with `cargo doc --features extra-docs`. |
173 |
| -#[cfg(feature = "extra-docs")] |
174 | 147 | pub mod guide {
|
175 | 148 | //! # Getting started guide.
|
176 | 149 | //!
|
|
0 commit comments