Working on an Existing Cargo Package

If you download an existing package that uses Cargo, it’s really easyto get going.

First, get the package from somewhere. In this example, we’ll use randcloned from its repository on GitHub:

  1. $ git clone https://github.com/rust-lang-nursery/rand.git
  2. $ cd rand

To build, use cargo build:

  1. $ cargo build
  2. Compiling rand v0.1.0 (file:///path/to/package/rand)

This will fetch all of the dependencies and then build them, along with thepackage.