#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 12/week @ 2024-08-31 7/week @ 2024-09-07 14/week @ 2024-09-14 32/week @ 2024-09-21 33/week @ 2024-09-28 6/week @ 2024-10-12 10/week @ 2024-10-19 7/week @ 2024-10-26 8/week @ 2024-11-02 10/week @ 2024-11-16 14/week @ 2024-11-23 14/week @ 2024-11-30 27/week @ 2024-12-07 10/week @ 2024-12-14

69 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

~9–18MB
~238K SLoC