Switch to async API #12
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mikedilger/mime-multipart#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This crate is built upon an older, pre-async version of hyper, and as a result the API is also blocking. The hyper ecosystem has moved to async.
I've analyzed a little bit what I think should be done:
read_multipart/read_multipart_bodyto returnfutures::stream::Streamof nodes instead ofVecWill you accept a PR?
I'm not doing much rust development lately due to a change in employment.
I'm well aware of the move to async throughout the ecosystem.
Yes I would accept a PR.
I think it's also important to continue to support existing pre-async code. So perhaps an async version should start at 0.20.0 eventually aiming towards 1.0.0, and the pre-async version can continue on the low version numbers if it needs to. Or something like that (suggestions welcome).
Thanks for the reply. I looked into this some more, I found that putting work into upgrading this crate would probably be duplicated effort, due to the existence of https://github.com/abonander/multipart and https://github.com/abonander/multipart-async. I was able to use the former crate to get rid of the hyper dependency.
Glad you've found a path forward.