Skip to content

Commit 2d83af4

Browse files
committed
Move testutils macro module before the others
This allows using the `testuitils` macro in their tests as well
1 parent cfb67fc commit 2d83af4

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/lib.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,14 @@ pub extern crate sled;
249249
#[cfg(feature = "sqlite")]
250250
pub extern crate rusqlite;
251251

252+
// We should consider putting this under a feature flag but we need the macro in doctests so we need
253+
// to wait until https://github.com/rust-lang/rust/issues/67295 is fixed.
254+
//
255+
// Stuff in here is too rough to document atm
256+
#[doc(hidden)]
257+
#[macro_use]
258+
pub mod testutils;
259+
252260
#[allow(unused_imports)]
253261
#[macro_use]
254262
pub(crate) mod error;
@@ -277,10 +285,3 @@ pub use wallet::Wallet;
277285
pub fn version() -> &'static str {
278286
env!("CARGO_PKG_VERSION", "unknown")
279287
}
280-
281-
// We should consider putting this under a feature flag but we need the macro in doctests so we need
282-
// to wait until https://github.com/rust-lang/rust/issues/67295 is fixed.
283-
//
284-
// Stuff in here is too rough to document atm
285-
#[doc(hidden)]
286-
pub mod testutils;

src/testutils/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,5 @@ macro_rules! testutils {
267267
(external, internal)
268268
})
269269
}
270+
271+
pub use testutils;

0 commit comments

Comments
 (0)