The mime_more crate
This is an "extension" to the mime crate that provides more functionality for working with MIME types.
Features
- Based on
mime, so everything thatmimecan do,mime_morecan do too. - (Feature
extensionrequired) Guessing the MIME type of file based on its extension viamime_guesscrate. - (Feature
extension-lightrequired) Guessing the MIME type of file based on its extension, but it is a bit lighter thanextensionfeature. Only common extensions are supported. - (Feature
magicrequired) Interrupting the MIME type of file based on its magic bytes viainfercrate. - (Feature
texturerequired) High-performance texture validation methods. - (Feature
dataurlrequired) Generating data URLs with relative shorter length and less time.
Usage
Add this to your Cargo.toml:
[]
= "0.1.2"
Then you can use it like this:
use Mime;
License
This project is licensed under the MIT license.
Authors
The project is currently written by Ethan Goh.