#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

#8 in #error-reporting

Download history 1221/week @ 2024-01-22 1613/week @ 2024-01-29 1559/week @ 2024-02-05 1164/week @ 2024-02-12 917/week @ 2024-02-19 1305/week @ 2024-02-26 1722/week @ 2024-03-04 1527/week @ 2024-03-11 1089/week @ 2024-03-18 628/week @ 2024-03-25 1041/week @ 2024-04-01 509/week @ 2024-04-08 1480/week @ 2024-04-15 838/week @ 2024-04-22 549/week @ 2024-04-29 874/week @ 2024-05-06

3,790 downloads per month
Used in 22 crates (17 directly)

MIT/Apache

690KB
15K 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

~10–20MB
~252K SLoC