Crate pavex_miette

Source
Expand description

This crate provides a custom graphical Miette handler for the Pavex project.

The handler is largely based on the miette::handlers::GraphicalHandler, with one key difference: we only report the code snippets from the related errors associated with a report. We have also done other minor tweaks to the graphical layout to better suit our needs.

This allows us to display snippets that come from different source files, a feature that doesn’t have first-class support in miette.
In other words, you can see this custom handler as a “hack” to avoid having to maintain a full fork of miette.

Structs§

GraphicalReportHandler
A ReportHandler that displays a given Report in a quasi-graphical way, using terminal colors, unicode drawing characters, and other such things.
PavexMietteHandler
A ReportHandler that displays a given Report in a quasi-graphical way, using terminal colors, unicode drawing characters, and other such things. This is the reporter used by Pavex.
PavexMietteHandlerOpts
Create a custom PavexMietteHandler from options.