Skip to content

crates.io data access policy

Johan Anderholm bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1fetch2/crate: use CDN for fetching crateslib/bb/fetch2/crate.py+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] crates.io data access policy

It appears that the crate fetcher does not adhere to the data access policy of crates.io as is described here:

https://crates.io/data-access#api

Namely the part about adding a user-agent identifying the application and information on how to reach the project in case of issues.

Also users are requested to use the CDN instead of the download API, as that does not have a 1 request per second limit:

https://github.com/rust-lang/crates.io/issues/13482#issuecomment-4304855751

This patch addresses the request to use a CDN and seems to fix a recent breakage of the crate fetcher. It does not address the part about a user-agent since I do not know how to do that, and I do not know what to put in it anyway.

Johan Anderholm (1):
fetch2/crate: use CDN for fetching crates

 lib/bb/fetch2/crate.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1