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 65D781582EF for ; Sat, 08 Mar 2025 14:04:34 +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 4E126343105 for ; Sat, 08 Mar 2025 14:04:34 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id BEB921104AB; Sat, 08 Mar 2025 13:59:39 +0000 (UTC) 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 bobolink.gentoo.org (Postfix) with ESMTPS id 056D7110105 for ; Sat, 08 Mar 2025 13:59:39 +0000 (UTC) Received: from arthur-pc.bbrouter (unknown [62.56.175.90]) (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) (Authenticated sender: arthurzam) by smtp.gentoo.org (Postfix) with ESMTPSA id AEDCB342FEA; Sat, 08 Mar 2025 13:59:37 +0000 (UTC) From: Arthur Zamarin To: gentoo-dev@lists.gentoo.org Cc: rust@gentoo.org, swomf , Arthur Zamarin Subject: [gentoo-dev] [PATCH 5/5] cargo.eclass: use static.crates.io cdn Date: Sat, 8 Mar 2025 15:59:21 +0200 Message-ID: <20250308135921.593905-6-arthurzam@gentoo.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250308135921.593905-1-arthurzam@gentoo.org> References: <20250308135921.593905-1-arthurzam@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: a98cb99a-6345-4e74-90cf-e16f8747d63d X-Archives-Hash: 4a03c0c0bc38cb5081a5c71dcc136dad From: swomf 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 Closes: https://github.com/gentoo/gentoo/pull/40944 Signed-off-by: Arthur Zamarin --- eclass/cargo.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index dae2b93f24f..9edfff88aa2 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 -- 2.48.1