#error-reporting #linter #formatter #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

#272 in Development tools

Download history 8881/week @ 2024-08-11 10648/week @ 2024-08-18 15245/week @ 2024-08-25 8925/week @ 2024-09-01 11156/week @ 2024-09-08 9026/week @ 2024-09-15 10763/week @ 2024-09-22 18565/week @ 2024-09-29 5204/week @ 2024-10-06 15969/week @ 2024-10-13 9583/week @ 2024-10-20 15244/week @ 2024-10-27 4534/week @ 2024-11-03 30743/week @ 2024-11-10 32987/week @ 2024-11-17 9353/week @ 2024-11-24

77,741 downloads per month
Used in 23 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

~9–18MB
~243K SLoC