Expand description
Proc-macro for generating strongly-typed error catalogs from JSON.
This macro reads a JSON file at compile time, validates error definitions, and generates type-safe error code enums and helper macros.
§Usage
The macro is self-contained and handles imports automatically.
ⓘ
declare_errors! {
path = "gts/errors_system.json",
namespace = "system_errors",
vis = "pub"
}Macros§
- declare_
errors - Main proc-macro entry point