Skip to content

Return static.crates.io download URL for Cargo packages - #239

Open
akashrajeev wants to merge 1 commit into
package-url:mainfrom
akashrajeev:cargo-static-download-url
Open

akashrajeev wants to merge 1 commit into
package-url:mainfrom
akashrajeev:cargo-static-download-url

Conversation

@akashrajeev

Copy link
Copy Markdown

The Cargo download URL currently goes through the crates.io API endpoint, which is rate limited. static.crates.io serves the same archives with no rate limit, so use that instead.

Checked both forms against live crates.io for a few packages and updated the URL expectations.

Closes #234

The crates.io API download endpoint is rate limited, while the
static.crates.io URLs are not, so prefer those for Cargo download
URLs.

Closes package-url#234

Signed-off-by: AKASH RAJEEV K V <akashrajeev.313@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade crates.io URL from "api/v1" to "static" in purl2url

1 participant