paladin_herald/lib.rs
1//! # Paladin Herald
2//!
3//! Concrete [`Herald`](paladin_core::platform::container::herald::Herald) output-formatter
4//! adapters for the Paladin framework. The `Herald` trait (the output-formatting port) lives in
5//! `paladin-core`; this crate provides the rendering implementations and their presentation
6//! dependencies (`comfy-table`, `colored`) so the pure domain crate stays dependency-light.
7//!
8//! ## Formatters
9//!
10//! - [`JsonHerald`] — structured JSON output. Always available.
11//! - [`MarkdownHerald`] — Markdown terminal output. Always available; its *coloured* rendering
12//! path requires the `color` feature (gates the `colored` dependency) — with the feature off,
13//! it renders the same plain-text path it already takes when `include_colors` is `false`.
14//! - `TableHerald` — compact table output. Requires the `table` feature (gates the
15//! `comfy-table` dependency).
16//!
17//! Each implements `paladin_core::platform::container::herald::Herald` and can be used
18//! anywhere a `dyn Herald` is expected.
19
20#![warn(missing_docs)]
21
22pub mod json_herald;
23pub mod markdown_herald;
24#[cfg(feature = "table")]
25pub mod table_herald;
26
27pub use json_herald::JsonHerald;
28pub use markdown_herald::MarkdownHerald;
29#[cfg(feature = "table")]
30pub use table_herald::TableHerald;