-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use crates.io sparse index by default #1310
Comments
NobodyXu
added a commit
that referenced
this issue
Aug 23, 2023
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>
NobodyXu
added a commit
that referenced
this issue
Aug 23, 2023
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>
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 24, 2023
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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
crates.io API is not meant to be used for finding and downloading crates metadata.
It's also rate limited to 1 request per second, while crates.io sparse index is designed for such activities.
Switching to crates.io sparse index would fix this and avoid hitting crates.io with unnecessary API calls and remove a huge amount of code in our codebase.
The text was updated successfully, but these errors were encountered: