cargo-binstall/crates/binstalk-downloader/src/remote
Jiahao XU 8eee318ccd
Replace dep crates_io_api with in-house solution (#846)
It also uses `max_stable_version` in the json downloaded from https://crates.io/api/v1/crates/$name if possible, which is equivalent to the version shown on https://crates.io/crates/$name .

 - Add new feat `json` to `binstalk-downloader`
 - Impl new async fn `Response::json`
 - use `Response::json` in `GhApiClient` impl
 - Mark all err types in binstalk-downloader as `non_exhaustive`
 - Ret `remote::Error` in `remote::Certificate::{from_pem, from_der}` instead of `ReqwestError`.
 - Refactor `BinstallError`: Merge variant `Unzip`, `Reqwest` & `Http`
    into one variant `Download`.
 - Manually download and parse json from httos://crates.io/api/v1
 - Remove unused deps `crates_io_api`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-03-02 18:25:34 +11:00
..
certificate.rs Replace dep crates_io_api with in-house solution (#846) 2023-03-02 18:25:34 +11:00
delay_request.rs Feature: Better retry policy in binstalk-downloader (#794) 2023-02-13 13:43:48 +11:00
request_builder.rs Replace dep crates_io_api with in-house solution (#846) 2023-03-02 18:25:34 +11:00