Crates.io | crates-mirror |
lib.rs | crates-mirror |
version | 0.2.1 |
source | src |
created_at | 2016-07-24 19:31:15.091916 |
updated_at | 2016-11-09 15:39:22.679981 |
description | Crates.io mirror |
homepage | |
repository | https://github.com/weiznich/crates-mirror |
max_upload_size | |
id | 5773 |
size | 19,839 |
Crates-Mirror is a simple tool to provide a caching mirror for crates.io. It's serving a local index which is synced with a remote index. All requested crates are downloaded and cached localy for further usage.
You can install it using cargo install crates-mirror
Stores the index localy on the filesystem.
base_path = "/path/to/store/crates"
listen_on = "localhost:3000"
remote_api = "https://crates.io"
poll_intervall = 300 # seconds
[registry_config]
upstream_url = "https://github.com/rust-lang/crates.io-index"
Stores the index in a remote git repositority.
base_path = "/tmp/crates_mirror"
listen_on = "localhost:3000"
remote_api = "https://crates.io"
poll_intervall = 300 # seconds
[registry_config]
upstream_url = "https://github.com/rust-lang/crates.io-index"
[registry_config.origin]
url = "git@own.host/whatever"
username = "weiznich" #optional, could also use ssh-key
password = "xxxxx" #optional, could also use ssh-key
Licensed under either of
at your option.