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:
Jiahao XU 2023-08-24 10:04:06 +10:00 committed by GitHub
parent 0a71b39c90
commit b9adaa006f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 10 deletions

View file

@ -35,9 +35,12 @@ url = "2.3.1"
[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
toml_edit = { version = "0.19.11", features = ["serde"] }
binstalk-downloader = { version = "0.7.0", path = "../binstalk-downloader", default-features = false, features = ["rustls"] }
[features]
git = ["simple-git"]
crates_io_api = []
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]