Skip to main content

Module render

Module render 

Source
Expand description

Cargo-style diagnostic rendering.

This module provides a renderer that produces error messages in the style of Rust’s compiler, with:

  • Colored output
  • Source code snippets with line numbers
  • Underlines and carets for precise error locations
  • Multiple labeled spans
  • Notes and help messages

Modules§

colors
ANSI color codes for terminal output.

Structs§

CargoRenderer
A Cargo-style diagnostic renderer.
RenderConfig
Configuration for the diagnostic renderer.