Clone this repo:
  1. f562949 Update for cargo 0.20 by Evgenii Pashkin · 5 months ago master
  2. 91771ed Bump to 0.1.11 by Kartikaya Gupta · 6 months ago 0.1.11
  3. f1a2414 Fix typo in #40 that effectively broke #13 by Kartikaya Gupta · 6 months ago
  4. 536b52e Bump to 0.1.10 by Alex Crichton · 6 months ago 0.1.10
  5. 097e46b Touch up comment about *.orig files by Alex Crichton · 6 months ago

cargo-vendor

Build Status Build status

This is a Cargo subcommand which vendors all crates.io dependencies into a local directory using Cargo's support for source replacement.

Installation

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.

Note that the 0.1.9 release contains a number of ergonomic fixes over the 0.1.8 release, but depends on the cargo crate from git so can‘t be published to crates.io just yet. The 0.1.10 version should be able to get published to crates.io on 2017-06-08. In the meantime it’s recommended to install from git to get the latest version.

Example Usage

Simply run cargo vendor inside of any Cargo project:

$ cargo vendor
add this to your .cargo/config for this project:

    [source.crates-io]
    registry = 'https://github.com/rust-lang/crates.io-index'
    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.

License

cargo-vendor is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.