magiclen / rocket-multipart-form-data

This crate provides a multipart parser for the Rocket framework.
MIT License
35 stars 14 forks source link

Rocket 0.5.0-dev with multipart-async #9

Open arnodb opened 3 years ago

arnodb commented 3 years ago

Hi,

I've just spent some time making rocket-multipart-form-data compile against rocket's master branch: https://github.com/impero-com/rocket-multipart-form-data/tree/rocket-0.5.

The example actually does not compile because I didn't have the time to fix rocket-etag-if-none-match where I faced with a problem with hyper. However, I have quickly tested the whole thing with one use case and it seems to be working.

If you are interested in moving forward with this, I would be keen to do additional work.

magiclen commented 3 years ago

I replaced the multipart crate with multer and upgrade Rocket to 0.5.0-dev. The example can be compiled and works fine.

0a175ccc2138d7cc3e0360843814f126fc455f5c

SergioBenitez commented 3 years ago

Note that 0.5 already includes direct support for multipart forms. See FromForm and the master forms guide.

magiclen commented 3 years ago

I wrote another example which uses a struct to derive FromForm to try to do the same things that this example does.