mime_more 0.1.4

A library for better MIME function integrations.
Documentation

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 that mime can do, mime_more can do too.
  • (Feature extension required) Guessing the MIME type of file based on its extension via mime_guess crate.
  • (Feature extension-light required) Guessing the MIME type of file based on its extension, but it is a bit lighter than extension feature. Only common extensions are supported.
  • (Feature magic required) Interrupting the MIME type of file based on its magic bytes via infer crate.
  • (Feature texture required) High-performance texture validation methods.
  • (Feature dataurl required) Generating data URLs with relative shorter length and less time.

Usage

Add this to your Cargo.toml:

[dependencies]
mime_more = "0.1.2"

Then you can use it like this:

use mime_more::Mime;

fn main() {
    let mime = Mime::from_extension("html").unwrap();
    println!("{}", mime);
}

License

This project is licensed under the MIT license.

Authors

The project is currently written by Ethan Goh.