sloganking / scfmt

A code formatter for structured comments
MIT License
0 stars 0 forks source link

const compatible file extension hashmap #28

Closed sloganking closed 2 years ago

sloganking commented 2 years ago

The compatible file extensions hashmap should be const and generated at compile-time, rather than repeatedly at runtime.

Ideas for how to do this:

https://stackoverflow.com/questions/60273064/rust-best-practices-when-specifying-a-constant-hash-map

https://crates.io/crates/phf