Crate yamime

Crate yamime 

Source
Expand description

Complete Rust port of Go’s mime package with async-first design.

This crate provides comprehensive MIME functionality including:

  • MIME type detection by file extension
  • Media type parsing and formatting (RFC 2045, RFC 2616, RFC 2231)
  • RFC 2047 encoded-word encoding and decoding
  • Multipart MIME parsing and writing (RFC 2046, RFC 2388)
  • Quoted-printable encoding (RFC 2045)

All I/O operations are async-first using tokio.

Re-exports§

pub use error::Error;
pub use error::Result;
pub use mime_type::type_by_extension;
pub use mime_type::extensions_by_type;
pub use mime_type::add_extension_type;
pub use media_type::parse_media_type;
pub use media_type::format_media_type;
pub use encoded_word::WordEncoder;
pub use encoded_word::WordDecoder;

Modules§

encoded_word
RFC 2047 encoded-word encoding and decoding.
error
Error types for the mime crate.
grammar
Grammar validation helpers for MIME tokens.
media_type
Media type parsing and formatting.
mime_type
MIME type detection by file extension.
multipart
Multipart MIME parsing and writing.
platform
Platform-specific MIME type loading.
quotedprintable
Quoted-printable encoding.