rust-lang/cargo

Created Jun 16, 2022 · View the rust-lang/cargo repository page

The Rust package manager

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

877

Lines of Code

34,130

From

Mar 4, 2014

To

Jun 13, 2022

About rust-lang/cargo

Cargo is the official package manager and build system for the Rust programming language. It handles downloading project dependencies from registries, managing versions, and compiling Rust projects with a single command. Cargo is distributed as part of the Rust toolchain and is maintained by the Rust team for use across the wider ecosystem.

The project is written in Rust itself and handles complex tasks including dependency resolution, git-based package fetching via libgit2, network operations through libcurl, and compilation orchestration. It supports optional features like vendored OpenSSL for security and can be extended with third-party subcommands without modifying the core tool. Cargo releases are synchronized with Rust's main language releases.

Building Cargo from source requires a C compiler, Rust itself, and git, along with optional system libraries for networking and version control. The project is designed to work across multiple platforms including Unix-like systems, macOS, and Windows, using platform-specific approaches like Schannel on Windows instead of requiring OpenSSL. It is licensed under both MIT and Apache 2.0 licenses.

Share this video

More from rust-lang

See all →