migrate hyper to reqwest #11
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
please see the individual commit messages for further details.
i realise that this is similar to #8 from @jakobbraun, however this PR completely removes
hyper
and it does not add anasync
version of the API. i think removing the outdatedhyper
dependency (and the vulnerabilities coming from it) is the most pressing issue.note that this is a breaking change for consumers, so you might want to use that chance to just ditch the blocking API (currently the only one available) and replace it with an
async
API (most of the rust ecosystem - at the very least anything doing I/O - seems to have gone down that route, and for good reasons). i've raised #12 for this.nevertheless i think that merging & releasing this PR would be a good first step, you can then just remove the
blocking::
from thereqwest
module name and add the necessaryasync
/await
keywords. having a last non-async
release without the outdatedhyper
dependency would allow clients which are not (yet)async
to at least get rid of the security warnings coming from the outdatedhyper
dependency, giving them a two-step migration path (first get rid of insecure dependencies and then switch toasync
).fixes #9