Skip to content

Commit 48af0ee

Browse files
committed
primitives - add doctest comment
1 parent da7de81 commit 48af0ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

primitives/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ pub mod sentry;
4646
pub mod spender;
4747
pub mod supermarket;
4848
pub mod targeting;
49+
// It's not possible to enable this feature for doctest,
50+
// so we always must pass `--feature=test-util` or `--all-features` when running doctests:
51+
// `cargo test --doc --all-features`
52+
//
53+
// See issue: <https://github.com/rust-lang/rust/issues/67295>
4954
#[cfg(any(test, feature = "test-util"))]
5055
#[cfg_attr(docsrs, doc(cfg(feature = "test-util")))]
5156
pub mod test_util;

0 commit comments

Comments
 (0)