Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
weiznich Merge pull request #2 from lipeng31/master
Update to comply with the new crates
Latest commit 77fa7aa Dec 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml Pass cargo clippy Dec 5, 2018
Cargo.lock Modify one line Dec 4, 2018
Cargo.toml Pass cargo clippy Dec 5, 2018
LICENSE-APACHE Initial version Jul 24, 2016
LICENSE-MIT
README.md

README.md

Crates.io caching mirror

Build Status

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.

Installing

You can install it using cargo install crates-mirror

Usage

Local

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"

Remote 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

Reading Material

License

Licensed under either of

at your option.

You can’t perform that action at this time.