change_rust_src.sh 275 B

12345678
  1. # 更换Rust镜像源
  2. echo -e "[source.crates-io] \n \
  3. registry = \"https://github.com/rust-lang/crates.io-index\" \n \
  4. \n \
  5. replace-with = 'tuna' \n \
  6. [source.tuna] \n \
  7. registry = \"https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git\" \n \
  8. " > ~/.cargo/config