22 releases

0.8.1 Mar 12, 2024
0.7.2 Jan 6, 2024
0.7.0 Dec 2, 2023
0.6.2 Nov 10, 2023
0.3.1 Feb 15, 2019

#106 in HTTP server

Download history 5/week @ 2023-12-31 1/week @ 2024-01-07 13/week @ 2024-02-25 220/week @ 2024-03-03 234/week @ 2024-03-10 63/week @ 2024-03-17 2/week @ 2024-03-24 35/week @ 2024-03-31

338 downloads per month

MIT license

28KB
607 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

~13–27MB
~492K SLoC