This adds a new a crate, kbupd_macro, which provides a new procedural macro called |lazy_init!|. Rust dictates that procedural macros be defined in their own crate. The |lazy_init!| macro creates a number of lazy_static! objects, collects the variable names into a vector, and derives an initialization function that calls 'lazy_static::initialize(&variable)' on each lazy_static! object. |
||
|---|---|---|
| .. | ||
| lib.rs | ||