Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can we update crates index from specified url? #184

Open
miaomiao1992 opened this issue Aug 19, 2023 · 0 comments
Open

how can we update crates index from specified url? #184

miaomiao1992 opened this issue Aug 19, 2023 · 0 comments

Comments

@miaomiao1992
Copy link

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 miaomiao1992 changed the title how can we update crates index from defined url? how can we update crates index from specified url? Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant