#mime #multipart #mixed

mime_multipart

MIME multipart parsing, construction, and streaming

18 releases

0.5.2 Mar 28, 2019
0.5.1 Sep 10, 2017
0.5.0 Mar 11, 2017
0.3.4 Dec 13, 2016
0.2.3 Jul 29, 2016

#65 in Email

Download history 93/week @ 2018-12-19 17/week @ 2018-12-26 42/week @ 2019-01-02 52/week @ 2019-01-09 44/week @ 2019-01-16 26/week @ 2019-01-23 35/week @ 2019-01-30 56/week @ 2019-02-06 82/week @ 2019-02-13 20/week @ 2019-02-20 107/week @ 2019-02-27 19/week @ 2019-03-06 42/week @ 2019-03-13 165/week @ 2019-03-20 54/week @ 2019-03-27

242 downloads per month
Used in 8 crates (2 directly)

MIT/Apache

45KB
853 lines

mime-multipart

MIT licensed Apache-2.0 licensed

Rust library for MIME multipart parsing, construction, and streaming

Documentation is available at https://mikedilger.github.io/mime-multipart

Features

  • Parses from a stream, rather than in memory, so that memory is not hogged.
  • Streams parts which are identified as files (via the part's Content-Disposition header, if any, or via a manual override) to files on disk.
  • Uses buffered streams.
  • Lets you build and stream out a multipart as a vector of parts (Nodes), some of which could be files, others could be nested multipart parts.

If you are specifically dealing with multipart/formdata, you may be interested in https://github.com/mikedilger/formdata which uses this crate and takes it a step further.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~7.5MB
~134K SLoC