#rustup #mirror

app rustup-mirror

Setup a local rustup mirror

16 unstable releases (5 breaking)

0.6.0 Sep 16, 2021
0.4.4 Feb 18, 2021
0.4.2 Jun 8, 2020
0.4.1 Feb 20, 2020
0.3.1 Feb 15, 2019

#2 in #rustup

Download history 21/week @ 2021-08-18 8/week @ 2021-08-25 4/week @ 2021-09-01 2/week @ 2021-09-08 19/week @ 2021-09-15 6/week @ 2021-09-22 21/week @ 2021-09-29 3/week @ 2021-10-06 20/week @ 2021-10-13 8/week @ 2021-10-20 3/week @ 2021-10-27 34/week @ 2021-11-03 4/week @ 2021-11-10 20/week @ 2021-11-17 11/week @ 2021-11-24 27/week @ 2021-12-01

70 downloads per month

MIT license

22KB
437 lines

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

Dependencies

~10–15MB
~376K SLoC