#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

#121 in Web programming

Download history 6507/week @ 2024-07-24 7609/week @ 2024-07-31 9349/week @ 2024-08-07 5339/week @ 2024-08-14 15098/week @ 2024-08-21 10654/week @ 2024-08-28 12401/week @ 2024-09-04 8806/week @ 2024-09-11 11413/week @ 2024-09-18 12255/week @ 2024-09-25 13846/week @ 2024-10-02 8547/week @ 2024-10-09 13786/week @ 2024-10-16 10242/week @ 2024-10-23 13614/week @ 2024-10-30 5143/week @ 2024-11-06

48,349 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–19MB
~248K SLoC