#multipart-form #forms #http

dev rust-multipart-rfc7578_2

An implementation of multipart/form-data (RFC7578)

3 unstable releases

0.7.0 Jan 27, 2025
0.6.1 Dec 30, 2023
0.6.0 Dec 30, 2023

#801 in Web programming

Download history 29294/week @ 2024-10-25 31668/week @ 2024-11-01 28529/week @ 2024-11-08 29558/week @ 2024-11-15 25473/week @ 2024-11-22 23846/week @ 2024-11-29 22513/week @ 2024-12-06 20872/week @ 2024-12-13 12162/week @ 2024-12-20 10143/week @ 2024-12-27 17828/week @ 2025-01-03 21701/week @ 2025-01-10 20842/week @ 2025-01-17 23016/week @ 2025-01-24 30102/week @ 2025-01-31 41422/week @ 2025-02-07

118,995 downloads per month
Used in 40 crates (via axum-test)

MIT/Apache

34KB
513 lines

Workflow Status Maintenance

Rust Multipart (RFC 7578)

Components

This crate contains an implementation of the multipart/form-data media type described in RFC 7578.

Usage

Add either the Hyper implementation or the Actix implementation to your Cargo.toml file:

Actix:

[dependencies]
actix-multipart-rfc7578 = "0.10"

and import:

extern crate actix_multipart_rfc7578 as multipart;

Hyper:

[dependencies]
hyper-multipart-rfc7578 = "0.8"

and import:

extern crate rust_multipart_rfc7578_2 as multipart;

Note on Server Implementation

I don't have any plans on implementing the server-side of this any time soon. I ended up implementing the client-side because I couldn't find any good libraries that were compatible with hyper >= 0.11.

Please feel free to submit a pull request, I would gladly review it!

Alternatives

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

~4MB
~65K SLoC