#linter #formatter #error-reporting #parser

biome_diagnostics

Biome's shared infrastructure to implement reporting pretty error and diagnostics

10 releases (4 breaking)

0.5.7 Mar 12, 2024
0.5.6 Mar 12, 2024
0.4.0 Jan 9, 2024
0.3.1 Nov 26, 2023
0.0.2 Sep 28, 2023

#500 in Web programming

Download history 75/week @ 2023-12-23 66/week @ 2023-12-30 194/week @ 2024-01-06 346/week @ 2024-01-13 1220/week @ 2024-01-20 1605/week @ 2024-01-27 1569/week @ 2024-02-03 1149/week @ 2024-02-10 948/week @ 2024-02-17 1258/week @ 2024-02-24 1717/week @ 2024-03-02 1531/week @ 2024-03-09 1128/week @ 2024-03-16 647/week @ 2024-03-23 978/week @ 2024-03-30 455/week @ 2024-04-06

3,358 downloads per month
Used in 20 crates (17 directly)

MIT/Apache

320KB
7K SLoC

biome_diagnostics

This crate contains the types and utility functions used to implement errors and diagnostics in the Biome 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 biome_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 biome_diagnostics::prelude::*; to automatically bring all these traits into the ambient context

Dependencies

~0–8.5MB
~35K SLoC