Skip to content

Commit 961d6bf

Browse files
committed
Move testutils macro module before the others
This allows using the `testuitils` macro in their tests as well
1 parent 3334c8d commit 961d6bf

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/lib.rs

+8-7
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ pub extern crate sled;
251251
#[cfg(feature = "sqlite")]
252252
pub extern crate rusqlite;
253253

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

src/testutils/mod.rs

+2
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)