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
F171810143: D59575.id186401.diff
Sun, Sep 13, 5:21 PM
F171779310: D59575.id186401.diff
Sun, Sep 13, 11:38 AM
F171756578: D59575.id186401.diff
Sun, Sep 13, 7:37 AM
F171734819: D59575.diff
Sun, Sep 13, 3:31 AM
Unknown Object (File)
Sat, Sep 12, 3:10 PM
Unknown Object (File)
Sat, Sep 12, 4:11 AM
Unknown Object (File)
Sat, Sep 12, 3:42 AM
Unknown Object (File)
Fri, Sep 11, 9:24 PM
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