Registry / utility / mime-guess

mime-guess

JSON →
library2.0.5rscratesunverified

A simple crate for detection of a file's MIME type by its extension.

# Cargo.toml [dependencies] mime_guess = "2.0.5"
INSTALL
IMPORT
SIG · MIME-GUESS
M
mime-guess
utilityrustv2.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from_ext
use mime_guess::from_ext;

Guess the MIME type from a file extension.

use mime_guess::from_ext; let mime = from_ext("html").unwrap_or(mime::TEXT_PLAIN); println!("MIME type: {}", mime);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mime-guess — cargo add mime-guess · libregistry