From: Alekos Filini Date: Wed, 23 Mar 2022 11:00:24 +0000 (+0100) Subject: Move testutils macro module before the others X-Git-Tag: v0.19.0~10^2~2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/struct.SingleMissingOutputError.html?a=commitdiff_plain;h=2d83af49051f5d33105315164f3edf7f72f3741f;p=bdk Move testutils macro module before the others This allows using the `testuitils` macro in their tests as well --- diff --git a/src/lib.rs b/src/lib.rs index c3de5ae8..6db7103e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/testutils/mod.rs b/src/testutils/mod.rs index f05c9df4..b10f1a3b 100644 --- a/src/testutils/mod.rs +++ b/src/testutils/mod.rs @@ -267,3 +267,5 @@ macro_rules! testutils { (external, internal) }) } + +pub use testutils;