I can see that this crate is focused on identifying files/arbitrary data by magic values, but afaict this is the only crate which implements the freedesktop shared mime db spec, so it would be nice if from_filepath also checked for matching extensions since most of the work (parsing the db etc.) is already done here, and would have to be duplicated in another crate.
Alternatively maybe some of that logic could be split out into another crate which then i could use to implement filename checking?
I can see that this crate is focused on identifying files/arbitrary data by magic values, but afaict this is the only crate which implements the freedesktop shared mime db spec, so it would be nice if
from_filepath
also checked for matching extensions since most of the work (parsing the db etc.) is already done here, and would have to be duplicated in another crate. Alternatively maybe some of that logic could be split out into another crate which then i could use to implement filename checking?