#diagnostics #rome #error #reporting #context #traits #struct

rome_diagnostics

Pretty error reporting library

1 unstable release

0.0.1 Apr 5, 2023

#12 in #rome

Download history 17/week @ 2024-04-07 22/week @ 2024-04-14 27/week @ 2024-04-21 16/week @ 2024-04-28 17/week @ 2024-05-05 25/week @ 2024-05-12 20/week @ 2024-05-19 23/week @ 2024-05-26 15/week @ 2024-06-02 13/week @ 2024-06-09 17/week @ 2024-06-16 21/week @ 2024-06-23 21/week @ 2024-06-30 9/week @ 2024-07-07 28/week @ 2024-07-14 17/week @ 2024-07-21

75 downloads per month
Used in 9 crates (6 directly)

MIT license

185KB
4.5K SLoC

rome_diagnostics

This crate contains the types and utility functions used to implement errors and diagnostics in the Rome codebase

Acknowledgement

This crate was initially forked from rslint_errors. The design of the new Diagnostic trait, Error struct, Context trait, and the Diagnostic derive macro in rome_diagnostics_macros are inspired by various fantastic crates in the Rust error handling space: miette, anyhow and thiserror


lib.rs:

Anonymously re-exports all the traits declared by this module, this is intended to be imported as use rome_diagnostics::prelude::*; to automatically bring all these traits into the ambient context

Dependencies

~7–17MB
~204K SLoC