Generate a PHF of SVG attribute names
We will map SVG attribute names to enum values using a Perfect Hash Function, instead of doing string comparisons and hash table lookups everywhere. At build time, we generate the PHF mapping. We do this with phf_codegen (in the build.rs script) instead of phf_macros, as the latter cannot be used on Rust stable yet.
Showing with 231 additions and 3 deletions