rich-err 0.1.0

A highly detailed error type for compilers, tracebacks, etc.
Documentation
  • Coverage
  • 89.74%
    35 out of 39 items documented5 out of 20 items with examples
  • Size
  • Source code size: 19.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 7.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • RosieTheGhostie/rich-err
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RosieTheGhostie

Provides a highly detailed error type designed for:

  • Compilers (or anything similar)
  • Tracebacks
  • Any situation where a source file would provide valuable context for the user

This serves as a sort of wrapper around ariadne, although it is missing much of ariadne's functionality. The point is to have a simple interface for constructing error reports that works well enough for sufficiently simple applications.

As a word of caution, this higher level of detail comes at the cost of higher memory usage. The RichError struct alone is around 7 times larger than a String, and some features may incur extra heap allocations as well. Thus, it is not advisable to use rich errors unless an ordinary error is truly insufficient.