Cargo Features

[dependencies]
mime-infer = { version = "4.0.0", default-features = false, features = ["phf-map", "rev-map"] }
default = rev-map

The rev-map feature is set by default whenever mime-infer is added without default-features = false somewhere in the dependency tree.

phf-map

Enables phf and phf_codegen

rev-map default

generate reverse-mappings for lookup of extensions by MIME type default-on but can be turned off for smaller generated code

Affects impl_bin_search::get_extensions, mime-infer::get_mime_extensions, mime-infer::get_mime_extensions_str, mime-infer::get_extensions