cargo-local-registry icon indicating copy to clipboard operation
cargo-local-registry copied to clipboard

how can we update crates index from specified url?

Open miaomiao1992 opened this issue 1 year ago • 0 comments

G:\Codebase\Rust\源码精读\axum-v0.6.20>cargo local-registry --sync Cargo.toml --no-delete C:/Users/Administrator/.cargo/local-registry Blocking waiting for file lock on package cache Updating crates.io index warning: spurious network error (2 tries remaining): failed to send request: 操作超时 ; class=Os (2) warning: spurious network error (1 tries remaining): failed to send request: 操作超时 ; class=Os (2) error: failed to sync

Caused by: failed to load pkg lockfile

Caused by: failed to get hyper-util as a dependency of package example-hyper-1-0 v0.1.0 (G:\Codebase\Rust\源码精读\axum-v0.6.20\examples\hyper-1-0)

Caused by: failed to load source for dependency hyper-util

Caused by: Unable to update registry crates-io

Caused by: failed to fetch https://github.com/rust-lang/crates.io-index

Caused by: failed to send request: 操作超时 ; class=Os (2) 请按任意键继续. . .

i want to update crates index from https://mirrors.ustc.edu.cn/crates.io-index but not https://github.com/rust-lang/crates.io-index.

[source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' [source.ustc] registry = "https://mirrors.ustc.edu.cn/crates.io-index"

miaomiao1992 avatar Aug 19 '23 15:08 miaomiao1992