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§
- Graphical
Report Handler - A
ReportHandler
that displays a givenReport
in a quasi-graphical way, using terminal colors, unicode drawing characters, and other such things. - Pavex
Miette Handler - A
ReportHandler
that displays a givenReport
in a quasi-graphical way, using terminal colors, unicode drawing characters, and other such things. This is the reporter used by Pavex. - Pavex
Miette Handler Opts - Create a custom
PavexMietteHandler
from options.