This is a Cargo subcommand which vendors all crates.io dependencies into a local directory using Cargo's support for source replacement.
Currently this can be installed with:
$ cargo install --git https://github.com/alexcrichton/cargo-vendor
You can also install precompiled binaries that are assembled on the CI for this crate.
Simply run cargo vendor
inside of any Cargo project:
``` $ cargo vendor add this to your .cargo/config for this project:
[source.crates-io]
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = '/home/alex/code/cargo-vendor/vendor'
```
This will populate the vendor
directory which contains the source of all
crates.io dependencies. When configured, Cargo will then use this directory
instead of looking at crates.io.
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.