Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922544

Summary: how to change default rust crates mirrors(cargo.eclass)
Product: Gentoo Linux Reporter: renwei <liulanghaitun>
Component: EclassesAssignee: Gentoo Rust Project <rust>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo, navi, randy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description renwei 2024-01-20 15:14:32 UTC
crates.io seems to be hardcoded in cargo.eclass

Reproducible: Always

Steps to Reproduce:
1.open cargo.eclass
2.crates.io is hardcoded in cargo.eclass
3.
Actual Results:  
crates.io seems to be hardcoded in cargo.eclass

Expected Results:  
I want to change the default crates mirror
for example i want to change default crates.io to https://mirrors.ustc.edu.cn/crates.io-index.

url="https://crates.io/api/v1/crates/${name}/${version}/download -> ${name}-${version}.crate"

hardcode in cargo.eclass.