1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! A helper crate for testing Rust code blocks in Markdown.

#![doc(html_root_url = "https://docs.rs/doubter/0.1.0")]

extern crate doubter_impl as imp;
#[allow(unused_imports)]
#[macro_use]
extern crate doubter_macros as macros;

#[cfg(feature = "hack")]
#[macro_use]
extern crate proc_macro_hack;

#[doc(inline)]
pub use imp::public::*;
#[doc(hidden)]
pub use macros::*;

#[cfg(feature = "hack")]
proc_macro_item_decl! {
    /// A macro generating an item from the specified Markdown files.
    generate_doc_tests! => generate_doc_tests_impl
}

/// A macro generating an item from the specified Markdown files.
#[cfg(not(feature = "hack"))]
#[macro_export(local_inner_macros)]
macro_rules! generate_doc_tests {
    ($($t:tt)*) => ( generate_doc_tests_impl!{ $($t)* } );
}