#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

31 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

~8–17MB
~220K SLoC