rustup-mirror

Crates.iorustup-mirror
lib.rsrustup-mirror
version0.8.1
sourcesrc
created_at2019-02-12 18:49:01.740118
updated_at2024-03-12 05:10:15.418628
descriptionSetup a local rustup mirror.
homepage
repositoryhttps://github.com/jiegec/rustup-mirror
max_upload_size
id114350
size73,955
Chen (jiegec)

documentation

README

rustup-mirror

Crates.io version Changelog FOSSA Status

Setup a local rustup mirror. For usage, please run rustup-mirror -h.

How to install

Run cargo install rustup-mirror.

Features

  1. Check if file is already downloaded and check its integrity by comparing sha256 checksum.
  2. Download and replace links in the manifest files.

Example usage

$ 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

Note:

  1. A full clone of a stable distribution takes 16G disk space (as of Feb 2019).
  2. Python3 http.server module does not support Range download. It may fail when a partial downloaded file exists. Do not use this in production.

License

FOSSA Status

Commit count: 93

cargo fmt