.. /index

codespan-reporting

codespan-reporting

codespan-reporting is a Rust crate for emitting compiler-style diagnostic messages with source spans and labels. It provides a structured pipeline: build a Diagnostic with labels pointing into source files, then emit it to a terminal or other output.

It serves the same role as miette and ariadne — showing users where in source text an error occurred. codespan-reporting takes a more structured, pipeline-oriented approach compared to ariadne's builder API or miette's trait-based integration. Version 0.13.1 released October 2025, indicating active maintenance. See rust-error-crate-comparison.

Linked from

Sources