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