#menu #categories #codegen #freedesktop

freedesktop-categories-codegen

Parser and code generator for freedesktop-categories

1 unstable release

0.1.0 Sep 29, 2018

#59 in Build Utils

Download history 9/week @ 2018-10-05 4/week @ 2018-10-12 20/week @ 2018-10-19 2/week @ 2018-10-26 9/week @ 2018-11-02 5/week @ 2018-11-09 14/week @ 2018-11-16 1/week @ 2018-11-23 5/week @ 2018-11-30 7/week @ 2018-12-07

1 downloads per month
Used in 1 crate

MIT/Apache

13KB
255 lines


lib.rs:

Parser and code generator for freedesktop-categories.

Fetches the latest DocBook version of the Desktop Menu Specification from Freedesktop.org, parses the XML, builds a static phf hash map of all the categories, and saves the generated Rust code to a file which can be included in your Rust project during a Cargo build.

Dependencies

~11MB
~222K SLoC