# mime (Rust)

> MIME (HTTP media types) as strong types in Rust

Source: https://talira.ai/catalog/mime-rust-e9t5jsq8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http types](https://talira.ai/categories/libraries/http-types), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [hyperium](https://talira.ai/orgs/hyperium.md)

mime is a Rust crate from the hyperium project for working with MIME types (HTTP media types) as strong types: common types are constants such as mime::TEXT_PLAIN, and a parsed MIME type can be taken apart into its type and subtype to match on them. It's a different product from Dart's [mime](https://talira.ai/catalog/mime-m46m5220.md) package.

## Links

- GitHub: https://github.com/hyperium/mime
- Docs: https://docs.rs/mime

## Problems it solves

- parse and compare Content-Type values in Rust
- use typed MIME constants instead of strings in a Rust HTTP app
- match on a request's media type in Rust

## Features

- constants for common MIME types
- parse MIME strings into strongly typed values
- match on a MIME type's type and subtype

## Trust

Overall: 0.23 out of 1.
Signals: maintenance 0.06, adoption 0.47, momentum 0.12, community 0.62, backing 0.30, extensibility 0.00.

- latest release v0.3.0 7.9 years ago
- 224 GitHub stars
- 35 contributors
- accepts sponsorship (Github)
- backed by hyperium

Warnings:

- last commit 2.1 years ago

## Alternatives

- [http](https://talira.ai/catalog/http-1dgwv3ke.md): Common HTTP types for Rust

## Sources

[^1]: https://github.com/hyperium/mime/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/hyperium/mime/blob/master/LICENSE (checked 28 Nov 2026)
