cargo-cacher 0.1.1

cargo-cacher is a crates.io proxy that will proxy requests made when building a package with Cargo
cargo-cacher-0.1.1 is not a library.

cargo-cacher

Build StatusCoverage Status

cargo-cacher is a caching server in the same spirit as apt-cacher-ng. The goal is to allow recursive caching of the canonical crates.io index.

Usage

To configure your system to use a copy of cargo-cacher, you need to setup a .cargo/config file in your project, or in a containing folder. The contents of that folder should look like:

[source]

[source.mirror]
registry = "file:///configured/path/to/index"

[source.crates-io]
replace-with = "mirror"
registry = "https://doesnt-matter-but-must-be-present"

Once this is in place, your builds will go through the local proxy, and the crates will be pulled down to the local filesystem when they are first requested.

TODO

  • Add expiration on background thread
  • Add statistics
  • Remote git server