1#[doc(hidden)]
2#[macro_export]
3macro_rules! mod_def {
4 {$($vis:vis mod $ident:ident $(;)?)+} => {
5 $($vis mod $ident;
6 #[allow(unused_imports)]
7 $vis use $ident::*;)+
8 };
9
10 {!export $($vis:vis mod $ident:ident $(;)?)+} => {
11 $($vis mod $ident;
12 #[allow(unused_imports)]
13 pub use $ident::*;)+
14 };
15}
16
17mod_def! {
18 pub mod batch;
19}
20
21#[doc(hidden)]
22macro_rules! tracing_debug_log {
23 {[$(skip($($ident:ident),*) $(,)? )? $($parent:expr,)? $($name:literal,)?] $($tt:tt)*} => {
24 #[cfg_attr(feature = "log_err", tracing::instrument($(skip($($ident),*),)?level = "debug", $(parent = &$parent,)? $(name = $name,)? err))]
25 #[cfg_attr(not(feature = "log_err"), tracing::instrument($(skip($($ident),*),)?level = "debug", $(parent = &$parent,)? $(name = $name,)?))]
26 $($tt)*
27 };
28
29 {[skip_all, $($parent:expr,)? $($name:literal,)?] $($tt:tt)*} => {
30 #[cfg_attr(feature = "log_err", tracing::instrument(skip_all, level = "debug", $(parent = &$parent,)? $(name = $name,)? err))]
31 #[cfg_attr(not(feature = "log_err"), tracing::instrument(skip_all, level = "debug", $(parent = &$parent,)? $(name = $name,)?))]
32 $($tt)*
33 };
34}
35pub(crate) use tracing_debug_log;