mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-11 22:40:03 +00:00
binstalk-registry: Use crates.io sparse index by default (#1314)
Fixed #1310 Also add rename `fetch_crate_cratesio` => `fetch_crate_cratesio_api` and put it behind a new feature `crates_io_api`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
0a71b39c90
commit
b9adaa006f
3 changed files with 23 additions and 10 deletions
|
@ -105,7 +105,7 @@ async fn fetch_crate_cratesio_version_matched(
|
|||
|
||||
/// Find the crate by name, get its latest stable version matches `version_req`,
|
||||
/// retrieve its Cargo.toml and infer all its bins.
|
||||
pub async fn fetch_crate_cratesio(
|
||||
pub async fn fetch_crate_cratesio_api(
|
||||
client: Client,
|
||||
name: &str,
|
||||
version_req: &VersionReq,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue