-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, we would perform time-based caching for data from the crates.io API in order to avoid unnecessary load on it. Unfortunately, this would sometimes lead to situations such as #629 where the cache is out-of-date and confusing errors are produced. Since the last time we looked at this, the API guidance for the sparse HTTP index has been clarified, explicitly having "no rate limit". This allows us to simplify the caching code dramatically, caching only the data from the rate-limited crates.io API, and always checking the sparse HTTP index to see if new versions have been published. The new caching system no longer needs expiry times, as it will be updated consistently whenever a new version is published to the crates.io index. After this change, we will make more network requests than before when running cargo-vet to check the index.
- Loading branch information
Showing
6 changed files
with
313 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.