diagprint 0.8.1

A Rust diagnostics lifecycle framework for structured diagnostics, rendering, remediation, CI, editors, and telemetry.
Documentation
//! Integration adapters for external Rust error, diagnostic, and
//! observability ecosystems.
//!
//! Integrations are feature-gated so applications only compile dependencies
//! they explicitly opt into.

#[cfg(feature = "anyhow")]
mod anyhow;

#[cfg(feature = "ariadne")]
mod ariadne;

#[cfg(feature = "annotate-snippets")]
mod annotate_snippets;

#[cfg(feature = "codespan-reporting")]
mod codespan;

#[cfg(feature = "miette")]
mod miette;

#[cfg(feature = "tracing")]
mod tracing;

#[cfg(feature = "anyhow")]
pub use self::anyhow::AnyhowDiagnosticExt;

#[cfg(feature = "ariadne")]
pub use self::ariadne::{
    AriadneBridge, AriadneBridgeError, AriadneBridgeLabel, AriadneOwnedSpan, AriadneSpan,
};

#[cfg(feature = "annotate-snippets")]
pub use self::annotate_snippets::{
    AnnotateSnippetsBridge, AnnotateSnippetsBridgeError, AnnotateSnippetsLabel,
};

#[cfg(feature = "codespan-reporting")]
pub use self::codespan::CodespanDiagnosticExt;

#[cfg(feature = "miette")]
pub use self::miette::{MietteDiagnosticExt, MietteDiagnosticTree, MietteReportExt};

#[cfg(feature = "tracing")]
pub use self::tracing::TracingLayer;