Skip to content
  • Federico Mena Quintero's avatar
    Generate a PHF of SVG attribute names · fe3297f3
    Federico Mena Quintero authored
    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.
    fe3297f3