Move testutils macro module before the others
This allows using the `testuitils` macro in their tests as well
This commit is contained in:
parent
cfb67fc25b
commit
2d83af4905
15
src/lib.rs
15
src/lib.rs
@ -249,6 +249,14 @@ pub extern crate sled;
|
|||||||
#[cfg(feature = "sqlite")]
|
#[cfg(feature = "sqlite")]
|
||||||
pub extern crate rusqlite;
|
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)]
|
#[allow(unused_imports)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub(crate) mod error;
|
pub(crate) mod error;
|
||||||
@ -277,10 +285,3 @@ pub use wallet::Wallet;
|
|||||||
pub fn version() -> &'static str {
|
pub fn version() -> &'static str {
|
||||||
env!("CARGO_PKG_VERSION", "unknown")
|
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;
|
|
||||||
|
@ -267,3 +267,5 @@ macro_rules! testutils {
|
|||||||
(external, internal)
|
(external, internal)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub use testutils;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user