#parser #linter #formatter

biome_diagnostics_categories

Diagnostic categories for biome_diagnostics

7 releases (4 breaking)

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

#2139 in Web programming

Download history 76/week @ 2023-11-06 84/week @ 2023-11-13 301/week @ 2023-11-20 165/week @ 2023-11-27 57/week @ 2023-12-04 113/week @ 2023-12-11 185/week @ 2023-12-18 155/week @ 2023-12-25 89/week @ 2024-01-01 328/week @ 2024-01-08 417/week @ 2024-01-15 1290/week @ 2024-01-22 1695/week @ 2024-01-29 1632/week @ 2024-02-05 1259/week @ 2024-02-12 1125/week @ 2024-02-19

5,777 downloads per month
Used in 20 crates (2 directly)

MIT/Apache

32KB
413 lines

biome_diagnostics_categories

This crate contains a static registry of all the diagnostic categories used throughout the Biome codebase

Code Generation

The list of categories is defined in src/categories.rs using the define_dategories! macro, but instead of relying on conventional Rust macro expansion this crate instead uses a build script (in build.rs) to control how the code resulting from the macro is generated.

Specifically this lets us generate new identifiers, which is something plain Rust macros cannot do, without having to use full-blown procedural macros, which would require creating and building yet another crate.

Dependencies

~20–350KB