Cargo Features

[dependencies]
new_mime_guess = { version = "4.0.4", default-features = false, features = ["phf-map", "rev-mappings"] }
default = rev-mappings

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

phf-map = phf, phf_codegen
rev-mappings 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, new_mime_guess::get_mime_extensions, new_mime_guess::get_mime_extensions_str, new_mime_guess::get_extensions

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

phf phf-map?

Enables phf ~0.10.1

phf_codegen build phf-map?

Enables phf_codegen ~0.10.0