RE: cargo fetch
Marcin Gondek <[email protected]> Tue, 2 Jun 2026 17:10:42 +0000
| Newsgroups | gmane.os.netbsd.devel.packages |
|---|---|
| Message-ID | <PAXPR03MB8000F5E10663681E6E99366AF6122@PAXPR03MB8000.eurprd03.prod.outlook.com> |
Hi All I've got answer from them: ==cut== Carlos Euros (crates.io Help - Rust Programming Language) Jun 2, 2026, 16:35 UTC Yes, using static.crates.io you do not need to set a custom user agent, there is no rate limit, and that is preferred over making requests to crates.io/api. Thanks, Carlos ==cut== Thanks, -- Marcin Gondek / Drixter http://fido.e-utp.net/ AS56662 -----Original Message----- From: Marcin Gondek Sent: Monday, June 1, 2026 5:22 PM To: 'Jonathan Perkin' <[email protected]>; Adam <[email protected]> Cc: NetBSD tech-pkg <[email protected]> Subject: RE: cargo fetch Hi All, Just looked on their discussion forum. "I would also recommend that you download the files directly from the CDN instead of going through our API servers: e.g. https://static.crates.io/crates/libc/0.2.185/download or https://static.crates.io/crates/libc/libc-0.2.185.crate. That addresses the rate limit concern mentioned in xxxx (comment) since the 1 req/sec limit only applies to our API servers." was https://crates.io/api/v1/crates/serde/1.0.0/download could be https://static.crates.io/crates/serde/serde-1.0.0.crate or https://static.crates.io/crates/serde/1.0.0/download I've still no responses from them, not sure that we need to wait, maybe we should follow with static and no-api approach and we are good. Thanks, -- Marcin Gondek / Drixter http://fido.e-utp.net/ AS56662 -----Original Message----- From: Jonathan Perkin <[email protected]> Sent: Monday, June 1, 2026 2:37 PM To: Adam <[email protected]> Cc: Marcin Gondek <[email protected]>; NetBSD tech-pkg <[email protected]> Subject: Re: cargo fetch * On 2026-06-01 at 13:27 BST, Adam wrote: >My patch, which can be applied when Marcin gets the answer from crates.io: I was just writing something similar ;) This works for me with a couple of test packages, including ones with "+" distfiles like devel/cargo-c. -- Jonathan Perkin pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com