cargo-local-registry
cargo-local-registry copied to clipboard
how can we update crates index from specified url?
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"