document crate, split CowMailError, re-export mailparse/mediatype/CowHeader

This commit is contained in:
2026-10-10 19:55:31 +02:00
parent a0e29a6c48
commit 6eb22c9a21
6 changed files with 172 additions and 16 deletions
+5
View File
@@ -1,4 +1,9 @@
//! Body transfer-encoding.
//!
//! [`encode`] takes the content of a part and returns the encoded bytes together with the
//! [`ContentTransferEncoding`] to declare for them. It picks the most compact of `7bit`,
//! `quoted-printable` and `base64`, so a plain ASCII body stays readable in the serialized message
//! while binary content ends up base64-encoded.
use std::fmt::{self, Display};
use std::mem;