Skip to content

Commit 705d1a9

Browse files
psandanaCopilot
andcommitted
docs(thread_aware): gate the authoring guide with cfg(any(doc, test))
Addresses review feedback on PR #742: export the `_documentation` module only for rustdoc and tests, matching the established pattern in `recoverable` and `fetch`, so it does not become part of the crate's public API in normal builds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0b0c23b commit 705d1a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/thread_aware/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ mod wrappers;
178178

179179
/// A guide to authoring thread-aware types: how to implement, test, and debug them, and the
180180
/// anti-patterns to avoid. See [the guide](_documentation).
181+
#[cfg(any(doc, test))]
181182
pub mod _documentation;
182183

183184
pub mod closure;

0 commit comments

Comments
 (0)