rs-rich-ext 0.0.13

Extensions for the `rich` Rust port: diagnostics, structured data, clap and tracing integration, diffs, workflow renderables and a plugin registry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Optional facade adapters with explicit ownership; no global installation.
use crate::event::StructuredEvent;
pub trait EventSink: Send + Sync {
    fn emit(&self, event: StructuredEvent) -> std::io::Result<()>;
}
#[cfg(feature = "log")]
mod log;
#[cfg(feature = "log")]
pub use log::LogAdapter;
#[cfg(feature = "tracing")]
mod tracing;
#[cfg(feature = "tracing")]
pub use tracing::EventLayer;