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

rome_diagnostics

Pretty error reporting library

1 unstable release

0.0.1 Apr 5, 2023

#10 in #rome

Download history 11/week @ 2023-12-18 6/week @ 2023-12-25 14/week @ 2024-01-08 3/week @ 2024-01-15 4/week @ 2024-02-05 23/week @ 2024-02-12 18/week @ 2024-02-19 34/week @ 2024-02-26 56/week @ 2024-03-04 26/week @ 2024-03-11 21/week @ 2024-03-18 38/week @ 2024-03-25 57/week @ 2024-04-01

150 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

~11MB
~184K SLoC