Search

Lib.rs

› Multimedia › Video
#media-type #media-extensions #mime

mime2

MIME types that are up to date

Owned by Jonathan Woollett-Light.

  • Install
  • API reference
  • GitHub repo (jonathanwoollett-light)

8 releases

0.1.7 Nov 22, 2024
0.1.6 Oct 9, 2024

#201 in Video

Download history 14/week @ 2026-01-26 3/week @ 2026-02-02 1/week @ 2026-03-09 2/week @ 2026-03-16 1/week @ 2026-03-23 5/week @ 2026-03-30

713 downloads per month
Used in 2 crates (via nu_plugin_plotters)

Apache-2.0

1MB
22K SLoC

Mime2

Crates.io docs

MIME types that are more up to date than mime.

How to update

Update all the CSVs from https://www.iana.org/assignments/media-types/media-types.xhtml.

  • application.csv: https://www.iana.org/assignments/media-types/application.csv
  • font.csv: https://www.iana.org/assignments/media-types/font.csv
  • haptics.csv: https://www.iana.org/assignments/media-types/haptics.csv
  • image.csv: https://www.iana.org/assignments/media-types/image.csv
  • message.csv: https://www.iana.org/assignments/media-types/message.csv
  • model.csv: https://www.iana.org/assignments/media-types/model.csv
  • multipart.csv: https://www.iana.org/assignments/media-types/multipart.csv
  • text.csv: https://www.iana.org/assignments/media-types/text.csv
  • video.csv: https://www.iana.org/assignments/media-types/video.csv

Why is manually updating required?

If you attempt to do a simple get reqwest on the url you receive:

Status 403 Forbidden: User-Agent required. Contact iana@iana.org with questions.

Attempting circumvent this are presently out of scope.

Dependencies

~4–285KB

  • optional http 1.1
  • build build.rs
  • build csv
  • build proc-macro2
  • build quote
Related: sequential-macro, ux2-macros, clippy-tracing, redis-lock, cargo-maintained
See also: mime, mediatype, file-format, tree_magic_mini, rustypipe, mime2ext, qubit-mime, tika-magic, axum-accept, trv, mime-db

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.