Ariadne Overview and Features
mainAriadne is a crate for generating high-quality, fancy compiler diagnostics. It is a sister project to chumsky.
Key Features
- Flexible Spans: Supports inline and multi-line labels with arbitrary span configurations.
- Multi-file Support: Capable of reporting errors across multiple files.
- Visuals: Coloured labels and highlighting with 8-bit and 24-bit color support via
yansi. - Smart Layout: Built-in heuristics to handle label priority, ordering, and avoid overlapping or crossover.
- Robustness: Correct handling of variable-width characters like tabs.
- Customization: Includes a
ColorGeneratorfor distinct visual elements and various options for tab width, underlines, and label attach points.
Technical Details
- MSRV:
1.85.0 - Stability: Follows
semverfor the API, but note that the visual layout of error messages may change due to internal layout heuristic tweaks.