From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C021D1582EF for ; Sat, 08 Mar 2025 14:04:51 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id A6EC13430D6 for ; Sat, 08 Mar 2025 14:04:51 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 122C41103C7; Sat, 08 Mar 2025 14:02:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 040651103C7 for ; Sat, 08 Mar 2025 14:02:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3B65342FE5 for ; Sat, 08 Mar 2025 14:02:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1AEA8289E for ; Sat, 08 Mar 2025 14:02:51 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1741442550.89ebdf7e00afd3c25a15c993993e9dc8f46498bb.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/cargo.eclass X-VCS-Directories: eclass/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 89ebdf7e00afd3c25a15c993993e9dc8f46498bb X-VCS-Branch: master Date: Sat, 08 Mar 2025 14:02:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 00ff1f39-1530-484f-b5d1-c2503cbee0d8 X-Archives-Hash: 7349104af11def11cd5fdd657f2422f3 commit: 89ebdf7e00afd3c25a15c993993e9dc8f46498bb Author: swomf proton me> AuthorDate: Fri Mar 7 16:03:46 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Mar 8 14:02:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89ebdf7e cargo.eclass: use static.crates.io cdn Starting from 2024-03-12, cargo began to download crates directly from static.crates.io CDN servers worldwide. See https://blog.rust-lang.org/2024/03/11/crates-io-download-changes.html Signed-off-by: swomf proton.me> Closes: https://github.com/gentoo/gentoo/pull/40944 Signed-off-by: Arthur Zamarin gentoo.org> eclass/cargo.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index dae2b93f24f3..9edfff88aa22 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -269,7 +269,7 @@ _cargo_set_crate_uris() { name="${BASH_REMATCH[1]}" version="${BASH_REMATCH[2]}" fi - url="https://crates.io/api/v1/crates/${name}/${version}/download -> ${name}-${version}.crate" + url="https://static.crates.io/api/v1/crates/${name}/${version}/download -> ${name}-${version}.crate" CARGO_CRATE_URIS+="${url} " # when invoked by pkgbump, avoid fetching all the crates