Crate mime_to_ext

Crate mime_to_ext 

Source
Expand description

no_std MIME โ†” extension lookup from embedded JSON, zero OS dependencies.

The database is embedded once at compile time and lazily parsed on first use. All returned strings are 'static and live for the entire program duration.

Functionsยง

ext_to_mime
Return the canonical MIME type for a file extension.
mime_to_ext
Return the file extensions (without leading dot) for a MIME type.