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

#1725 in Web programming

Download history 7221/week @ 2024-08-01 9186/week @ 2024-08-08 7322/week @ 2024-08-15 14934/week @ 2024-08-22 10341/week @ 2024-08-29 11624/week @ 2024-09-05 8098/week @ 2024-09-12 11335/week @ 2024-09-19 19464/week @ 2024-09-26 6640/week @ 2024-10-03 12502/week @ 2024-10-10 13134/week @ 2024-10-17 9261/week @ 2024-10-24 11748/week @ 2024-10-31 8765/week @ 2024-11-07 39673/week @ 2024-11-14

73,406 downloads per month
Used in 24 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

~16–360KB