tokio_mime/
lib.rs

1//! Complete Rust port of Go's mime package with async-first design.
2//!
3//! This crate provides comprehensive MIME functionality including:
4//! - MIME type detection by file extension
5//! - Media type parsing and formatting (RFC 2045, RFC 2616, RFC 2231)
6//! - RFC 2047 encoded-word encoding and decoding
7//! - Multipart MIME parsing and writing (RFC 2046, RFC 2388)
8//! - Quoted-printable encoding (RFC 2045)
9//!
10//! All I/O operations are async-first using tokio.
11
12pub mod error;
13pub mod grammar;
14pub mod mime_type;
15pub mod media_type;
16pub mod encoded_word;
17pub mod multipart;
18pub mod quotedprintable;
19
20#[cfg(unix)]
21pub mod platform;
22
23#[cfg(windows)]
24pub mod platform;
25
26// Re-export commonly used types
27pub use error::{Error, Result};
28pub use mime_type::{type_by_extension, extensions_by_type, add_extension_type};
29pub use media_type::{parse_media_type, format_media_type};
30pub use encoded_word::{WordEncoder, WordDecoder};