#parser #linter #formatter

biome_diagnostics

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

6 releases (3 breaking)

0.4.0 Jan 9, 2024
0.3.1 Nov 26, 2023
0.1.0 Sep 28, 2023
0.0.2 Sep 28, 2023

#1213 in Web programming

Download history 58/week @ 2023-11-04 64/week @ 2023-11-11 149/week @ 2023-11-18 322/week @ 2023-11-25 58/week @ 2023-12-02 109/week @ 2023-12-09 175/week @ 2023-12-16 106/week @ 2023-12-23 134/week @ 2023-12-30 251/week @ 2024-01-06 418/week @ 2024-01-13 1286/week @ 2024-01-20 1690/week @ 2024-01-27 1636/week @ 2024-02-03 1222/week @ 2024-02-10 988/week @ 2024-02-17

5,911 downloads per month
Used in 19 crates (16 directly)

MIT/Apache

685KB
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

~12MB
~194K SLoC