Skip to content

cargo

Rust's official package manager and build tool for fetching dependencies and compiling

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

68

Health

Active

Overview

Stars

15,790

Last commit

today

Nov 2026

Repository age

12 years

since Mar 2014

Latest version

–

Contributors

–

7 active in 90 days

Releases

0

last 12 months

Language

Rust

Cargo is the package manager and build tool for Rust. It downloads the dependencies a project declares and compiles the project. The Cargo binary ships with Rust, and releases follow Rust releases.

The tool is written in Rust and runs as a command line program. You can extend it with third-party subcommands without changing Cargo itself. Building from source needs cargo and rustc, a C compiler and git. It can use system copies of libcurl, libgit2 and libssh2, or the vendored versions it bundles. On Windows it uses the system Schannel for TLS, and on Unix-like systems it uses OpenSSL or LibreSSL.

Cargo has been developed since 2014 and is dual-licensed under MIT and Apache 2.0. It is not tied to a commercial product, so it does not replace one. It is the standard way to manage Rust projects.

Who it's for

Rust developers

It is the standard tool for dependencies, builds and project workflow in Rust.

Skip if: You work in another language and need that language's own package manager.

Contributors to Rust tooling

You can build Cargo from source and follow its contributor guide to work on it.

Skip if: You only want to use Cargo, since the version bundled with Rust is enough.

Authors of custom build workflows

Third-party subcommands let you add commands without patching Cargo.

Skip if: Your needs are covered by the built-in commands.

The problem it solves

Rust projects depend on many external libraries that must be fetched and compiled in a consistent way. Cargo handles that download and build step from a single project manifest.

Strengths

  • Ships alongside Rust, with releases that coincide with Rust releases
  • Extensible through third-party subcommands
  • Builds on Windows, macOS and Linux with system or vendored C libraries
  • Developed since 2014 with active commits
  • Dual-licensed MIT and Apache 2.0

Trade-offs

  • Built for Rust projects only
  • The crate's library API is not intended for external use and may change
  • Building from source needs a C compiler and sometimes OpenSSL headers

Self-host cargo

Self-hostable
No (desktop or local app)

Quick start

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

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Cargo free?

Yes. It is open source under MIT and Apache 2.0 terms.

How do I get Cargo?

The Cargo binary is distributed with Rust. You only need to build from source if you want to develop Cargo itself.

Can I use Cargo as a library?

The crate may be used as a library, but it is mainly meant for Cargo itself and may make major API changes.

Can I add my own commands?

Yes. Cargo supports new subcommands without modifying Cargo.

Similar tools in App stores and package managers

vcpkg

App stores and package managers

C/C++ package manager from Microsoft for Windows, macOS and Linux projects

28k 7.8k today Thriving MIT

nexus-public

App stores and package managers

Self-hosted binary repository manager for Maven, raw and APT artifacts, built on Java

2.7k 760 10 months ago Slowing EPL-1.0

Replaces JFrog Artifactory

flox

App stores and package managers

Reproducible, Nix-based dev environments for engineering teams, defined in one manifest

4.2k 142 today Thriving GPL-2.0

Obtainium

App stores and package managers

Android app that installs and updates apps straight from their release pages

22k 713 today Thriving GPL-3.0

SignTools

App stores and package managers

Self-hosted service for signing and sideloading iOS apps from a browser, no computer

2.3k 289 12 days ago Active AGPL-3.0

revanced-manager

App stores and package managers

Android app for applying patches to other Android apps on your own device

30k 1.2k 6 months ago Dormant GPL-3.0