【文件属性】:
文件名称:rustup-mirror:设置本地rustup镜像
文件大小:17KB
文件格式:ZIP
更新时间:2021-02-11 14:31:51
crates rustup-mirror Rust
生锈的镜子
设置本地rustup镜像。 要使用,请运行rustup-mirror -h 。
如何安装
运行cargo install rustup-mirror 。
产品特点
检查文件是否已下载,并通过比较sha256校验和检查文件的完整性。
下载并替换清单文件中的链接。
用法示例
$ rustup-mirror # use HTTPS_PROXY for proxy
$ # wait for downloading
$ cd ./mirror # default directory, see rustup-mirror -h
$ python3 -m http.server &
$ RUSTUP_DIST_SERVER=http://127.0.0.1:8000 rustup install stable
注意:
完整发行版的稳定发行版需要16G磁盘空间(截至2019年2月)。
【文件预览】:
rustup-mirror-master
----rust-toolchain(7B)
----Cargo.lock(35KB)
----.github()
--------workflows()
----LICENSE(1KB)
----src()
--------main.rs(13KB)
----Cargo.toml(576B)
----.gitignore(32B)
----CHANGELOG.md(1KB)
----README.md(2KB)