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
Unknown Object (File)
Thu, Oct 1, 4:02 AM
Unknown Object (File)
Mon, Sep 28, 5:29 PM
Unknown Object (File)
Sat, Sep 26, 12:49 PM
Unknown Object (File)
Fri, Sep 25, 7:16 PM
Unknown Object (File)
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76752
Build 73635: arc lint + arc unit