rich-err

Crates.iorich-err
lib.rsrich-err
version0.1.0
created_at2025-08-06 22:36:39.740754+00
updated_at2025-08-06 22:36:39.740754+00
descriptionA highly detailed error type for compilers, tracebacks, etc.
homepage
repositoryhttps://github.com/RosieTheGhostie/rich-err
max_upload_size
id1784407
size19,912
RoseTheGhost (RosieTheGhostie)

documentation

https://docs.rs/rich-err/latest/

README

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.

Commit count: 0

cargo fmt