Skip to content

Commit 9a5573e

Browse files
committed
chore(dir-structure): add doc_cfg for tools-... modules
1 parent 1cac8c9 commit 9a5573e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • src/dev/dir-structure/src

src/dev/dir-structure/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,29 @@ pub mod prelude {
157157
}
158158

159159
#[cfg(feature = "tools-atomic-dir")]
160+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-atomic-dir")))]
160161
pub mod atomic_dir;
161162
#[cfg(feature = "tools-clean-dir")]
163+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-clean-dir")))]
162164
pub mod clean_dir;
163165
#[cfg(feature = "tools-data-formats")]
166+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-data-formats")))]
164167
pub mod data_formats;
165168
#[cfg(feature = "tools-deferred-read")]
169+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-deferred-read")))]
166170
pub mod deferred_read;
167171
#[cfg(feature = "tools-deferred-read-or-own")]
172+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-deferred-read-or-own")))]
168173
pub mod deferred_read_or_own;
169174
#[cfg(feature = "tools-dir-children")]
175+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-dir-children")))]
170176
pub mod dir_children;
171177
#[cfg(feature = "tools-dir-descendants")]
178+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-dir-descendants")))]
172179
pub mod dir_descendants;
173180
pub mod error;
174181
#[cfg(feature = "tools-fmt-wrapper")]
182+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-fmt-wrapper")))]
175183
pub mod fmt_wrapper;
176184
#[cfg(feature = "image")]
177185
#[cfg_attr(docsrs, doc(cfg(feature = "image")))]
@@ -180,10 +188,13 @@ pub mod option;
180188
pub mod std_types;
181189
pub mod traits;
182190
#[cfg(feature = "tools-try-parse")]
191+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-try-parse")))]
183192
pub mod try_parse;
184193
#[cfg(feature = "tools-versioned")]
194+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-versioned")))]
185195
pub mod versioned;
186196
#[cfg(feature = "tools-versioned-hash")]
197+
#[cfg_attr(docsrs, doc(cfg(feature = "tools-versioned-hash")))]
187198
pub mod versioned_hash;
188199
pub mod vfs;
189200

0 commit comments

Comments
 (0)