commit: 89ebdf7e00afd3c25a15c993993e9dc8f46498bb Author: swomf <swomf <AT> proton <DOT> me> AuthorDate: Fri Mar 7 16:03:46 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> 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 <swomf <AT> proton.me> Closes: https://github.com/gentoo/gentoo/pull/40944 Signed-off-by: Arthur Zamarin <arthurzam <AT> 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
