Page MenuHomeFreeBSD

bsd.sites.mk: use static CDN to download rust crates
ClosedPublic

Authored by siva on Thu, Sep 10, 5:18 PM.
Tags
None
Referenced Files
F173190019: D59575.diff
Thu, Sep 24, 4:45 AM
Unknown Object (File)
Wed, Sep 23, 4:58 AM
Unknown Object (File)
Tue, Sep 22, 11:01 PM
Unknown Object (File)
Mon, Sep 21, 12:47 PM
Unknown Object (File)
Mon, Sep 21, 12:56 AM
Unknown Object (File)
Sun, Sep 20, 2:38 PM
Unknown Object (File)
Sun, Sep 20, 1:37 AM
Unknown Object (File)
Sat, Sep 19, 5:53 AM
Subscribers

Details

Summary

static.crates.io is the recommended upstream download
path. This avoids "403 Forbidden" rate limiting results
when trying to download crates too fast. This also
seems to improve download speeds/latency.

As per https://crates.io/data-access#crate-content,

Crates can be downloaded directly from the crates.io CDN
[...]
No rate limits apply to static.crates.io at present.

And as per https://crates.io/data-access#api,

you are welcome to use the crates.io API provided you abide by the following limits:

  • A maximum of 1 request per second, and
  • A user-agent header that identifies your application.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable