59 breaking releases

Uses new Rust 2021

0.63.1 Jul 1, 2022
0.62.0 May 19, 2022
0.60.0 Feb 24, 2022
0.58.0 Dec 2, 2021
0.4.0 Jul 24, 2015

#1042 in Development tools

Download history 10182/week @ 2022-04-18 11257/week @ 2022-04-25 10444/week @ 2022-05-02 9642/week @ 2022-05-09 13337/week @ 2022-05-16 12248/week @ 2022-05-23 11726/week @ 2022-05-30 12947/week @ 2022-06-06 12759/week @ 2022-06-13 11987/week @ 2022-06-20 14069/week @ 2022-06-27 15862/week @ 2022-07-04 16021/week @ 2022-07-11 13864/week @ 2022-07-18 13172/week @ 2022-07-25 15035/week @ 2022-08-01

60,366 downloads per month
Used in 109 crates (99 directly)


54K SLoC


Cargo downloads your Rust project’s dependencies and compiles your project.

To start using Cargo, learn more at The Cargo Book.

To start developing Cargo itself, read the Cargo Contributor Guide.

Code Status


Code documentation: https://docs.rs/cargo/

Installing Cargo

Cargo is distributed by default with Rust, so if you've got rustc installed locally you probably also have cargo installed locally.

Compiling from Source

Cargo requires the following tools and packages to build:

  • git
  • curl (on Unix)
  • pkg-config (on Unix, used to figure out the libssl headers/libraries)
  • OpenSSL headers (only for Unix, this is the libssl-dev package on ubuntu)
  • cargo and rustc

First, you'll want to check out this repository

git clone https://github.com/rust-lang/cargo
cd cargo

With cargo already installed, you can simply run:

cargo build --release

Adding new subcommands to Cargo

Cargo is designed to be extensible with new subcommands without having to modify Cargo itself. See the Wiki page for more details and a list of known community-developed subcommands.


Cargo releases coincide with Rust releases. High level release notes are available as part of Rust's release notes. Detailed release notes are available in this repo at CHANGELOG.md.

Reporting issues

Found a bug? We'd love to know about it!

Please report all issues on the GitHub issue tracker.


See the Cargo Contributor Guide for a complete introduction to contributing to Cargo.


Cargo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).


Third party software

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (https://www.openssl.org/).

In binary form, this product includes software that is licensed under the terms of the GNU General Public License, version 2, with a linking exception, which can be obtained from the upstream repository.

See LICENSE-THIRD-PARTY for details.


~1M SLoC