1.use nano open config file
sudo nano ~/.cargo/config
2.replace content with
[alen@alen-lap .cargo]$ cat config
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
replace-with = 'ecodeing'
[source.ecodeing]
registry = "https://e.coding.net/googleteam/github_repos/crates.io-index.git"