Open
Description
Summary
A lot of projects that use Lofty are scanning directories and filtering files based on a set of extensions. What typically ends up happening is only a few popular extensions (mp3, flac, wav) will make it in the list, and not all of the formats that Lofty supports. Not to mention it's just a bunch of duplicated work.
FileType::from_ext
has a pretty good list of extensions:
lofty-rs/lofty/src/file/file_type.rs
Lines 130 to 145 in aa1ec31
It too isn't perfect, of course. But if projects start using a list of extensions we provide, then they get any improvements to it for free.
API design
/// ...
/// NOTE: This is not an exhaustive list, blah blah blah
pub const EXTENSIONS: &[&str] = &["mp3", "flac", ...];