Closed sloganking closed 2 years ago
The compatible file extensions hashmap should be const and generated at compile-time, rather than repeatedly at runtime.
https://stackoverflow.com/questions/60273064/rust-best-practices-when-specifying-a-constant-hash-map
https://crates.io/crates/phf
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