15 releases (5 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

#1894 in Web programming

Download history 1222/week @ 2024-01-20 1603/week @ 2024-01-27 1573/week @ 2024-02-03 1153/week @ 2024-02-10 957/week @ 2024-02-17 1261/week @ 2024-02-24 1798/week @ 2024-03-02 1952/week @ 2024-03-09 1154/week @ 2024-03-16 645/week @ 2024-03-23 991/week @ 2024-03-30 541/week @ 2024-04-06 1510/week @ 2024-04-13 832/week @ 2024-04-20 559/week @ 2024-04-27 865/week @ 2024-05-04

3,820 downloads per month
Used in 23 crates (2 directly)

MIT/Apache

34KB
428 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–345KB