]> Untitled Git - bdk/commitdiff
Move testutils macro module before the others
authorAlekos Filini <alekos.filini@gmail.com>
Wed, 23 Mar 2022 11:00:24 +0000 (12:00 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Mon, 9 May 2022 17:30:51 +0000 (19:30 +0200)
This allows using the `testuitils` macro in their tests as well

src/lib.rs
src/testutils/mod.rs

index c3de5ae849e0943da1ee31216dd8876ef42eb479..6db7103e3ab96d65fe342d1f6ccc4a9e891a82cc 100644 (file)
@@ -249,6 +249,14 @@ pub extern crate sled;
 #[cfg(feature = "sqlite")]
 pub extern crate rusqlite;
 
+// We should consider putting this under a feature flag but we need the macro in doctests so we need
+// to wait until https://github.com/rust-lang/rust/issues/67295 is fixed.
+//
+// Stuff in here is too rough to document atm
+#[doc(hidden)]
+#[macro_use]
+pub mod testutils;
+
 #[allow(unused_imports)]
 #[macro_use]
 pub(crate) mod error;
@@ -277,10 +285,3 @@ pub use wallet::Wallet;
 pub fn version() -> &'static str {
     env!("CARGO_PKG_VERSION", "unknown")
 }
-
-// We should consider putting this under a feature flag but we need the macro in doctests so we need
-// to wait until https://github.com/rust-lang/rust/issues/67295 is fixed.
-//
-// Stuff in here is too rough to document atm
-#[doc(hidden)]
-pub mod testutils;
index f05c9df48db74f14a0e4c7899368102c45d399c4..b10f1a3ba8f7f5d5246900a41c0a146c36001f75 100644 (file)
@@ -267,3 +267,5 @@ macro_rules! testutils {
         (external, internal)
     })
 }
+
+pub use testutils;