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
31
32
33
34
35
36
37
38
39
40
//! Derive macros for tabular layout configuration.
//!
//! This module provides derive macros that generate tabular specifications
//! from struct field annotations, eliminating boilerplate and enabling
//! type-safe column definitions.
//!
//! # Available Macros
//!
//! - [`Tabular`] - Generate a `TabularSpec` from struct field annotations
//! - [`TabularRow`] - Generate optimized row extraction without JSON serialization
//!
//! # Example
//!
//! ```ignore
//! use standout::tabular::{Tabular, TabularRow, TabularSpec};
//! use serde::Serialize;
//!
//! #[derive(Serialize, Tabular, TabularRow)]
//! #[tabular(separator = " │ ")]
//! struct Task {
//! #[col(width = 8, style = "muted")]
//! id: String,
//!
//! #[col(width = "fill", overflow = "wrap")]
//! title: String,
//!
//! #[col(width = 12, align = "right")]
//! status: String,
//! }
//!
//! // Generated: Task::tabular_spec() -> TabularSpec
//! // Generated: impl TabularRow for Task { fn to_row(&self) -> Vec<String> }
//! ```
pub use tabular_row_derive_impl;
pub use tabular_derive_impl;