log_table/lib.rs
1pub mod color;
2pub mod logger;
3
4// Re-export indexmap for macro use
5pub use indexmap;
6
7#[macro_export]
8macro_rules! table_data {
9 ($($key:ident : $value:expr),* $(,)?) => {{
10 let mut map = $crate::indexmap::IndexMap::new();
11 $(
12 let value_str = format!("{}", $value);
13 map.insert(stringify!($key), value_str);
14 )*
15 map
16 }};
17}