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