frewsxcv / rust-crates-index

Rust library for retrieving and interacting with the crates.io index
https://docs.rs/crates-index/
Apache License 2.0
72 stars 37 forks source link

Upgrade to http 1 #170

Closed fenhl closed 4 months ago

fenhl commented 4 months ago

This PR upgrades the http dependency to version 1. This allows directly converting from reqwest::Response to http::Response rather than manually building the response as shown in the example. Note that this conversion is only implemented for regular (async) responses, so the example (which uses reqwest::blocking) remains unchanged.