
This updates all semver-compatible dependencies. Updating anstyle-query v1.1.3 -> v1.1.4 Updating anstyle-svg v0.1.8 -> v0.1.10 Updating anstyle-wincon v3.0.9 -> v3.0.10 Updating anyhow v1.0.98 -> v1.0.99 Updating bitflags v2.9.1 -> v2.9.3 Updating camino v1.1.10 -> v1.1.12 Updating cc v1.2.31 -> v1.2.35 Updating cfg-if v1.0.1 -> v1.0.3 Updating clap v4.5.43 -> v4.5.46 Updating clap_builder v4.5.43 -> v4.5.46 Updating clap_complete v4.5.56 -> v4.5.57 Updating crc32fast v1.4.2 -> v1.5.0 Updating crunchy v0.2.3 -> v0.2.4 Updating curl v0.4.48 -> v0.4.49 Updating curl-sys v0.4.82+curl-8.14.1 -> v0.4.83+curl-8.15.0 Updating deranged v0.4.0 -> v0.5.3 Updating dyn-clone v1.0.19 -> v1.0.20 Updating escargot v0.5.14 -> v0.5.15 Updating filetime v0.2.25 -> v0.2.26 Adding find-msvc-tools v0.1.0 Updating form_urlencoded v1.2.1 -> v1.2.2 Updating gix-actor v0.35.2 -> v0.35.4 Updating gix-date v0.10.3 -> v0.10.5 Updating gix-features v0.43.0 -> v0.43.1 Updating gix-fs v0.16.0 -> v0.16.1 Updating gix-object v0.50.0 -> v0.50.2 Updating gix-path v0.10.19 -> v0.10.20 Updating gix-ref v0.53.0 -> v0.53.1 Updating h2 v0.4.11 -> v0.4.12 Updating hashbrown v0.15.4 -> v0.15.5 Updating hyper v1.6.0 -> v1.7.0 Updating hyper-util v0.1.15 -> v0.1.16 Updating idna v1.0.3 -> v1.1.0 Updating indexmap v2.10.0 -> v2.11.0 Updating io-uring v0.7.8 -> v0.7.10 Updating is_executable v1.0.4 -> v1.0.5 Updating jobserver v0.1.33 -> v0.1.34 Updating libc v0.2.174 -> v0.2.175 Updating libredox v0.1.3 -> v0.1.9 Updating memmap2 v0.9.5 -> v0.9.8 Updating openssl-src v300.5.0+3.5.0 -> v300.5.2+3.5.2 Updating percent-encoding v2.3.1 -> v2.3.2 Updating pest v2.8.0 -> v2.8.1 Updating pest_derive v2.8.0 -> v2.8.1 Updating pest_generator v2.8.0 -> v2.8.1 Updating pest_meta v2.8.0 -> v2.8.1 Updating plist v1.7.2 -> v1.7.4 Updating potential_utf v0.1.2 -> v0.1.3 Updating proc-macro2 v1.0.95 -> v1.0.101 Updating quick-xml v0.37.5 -> v0.38.3 Updating rayon v1.10.0 -> v1.11.0 Updating rayon-core v1.12.1 -> v1.13.0 Updating redox_syscall v0.5.13 -> v0.5.17 Updating regex v1.11.1 -> v1.11.2 Updating regex-automata v0.4.9 -> v0.4.10 Updating regex-syntax v0.8.5 -> v0.8.6 Updating reqwest v0.12.22 -> v0.12.23 Updating rustc-demangle v0.1.25 -> v0.1.26 Updating rustls v0.23.29 -> v0.23.31 Updating rustversion v1.0.21 -> v1.0.22 Updating serde-untagged v0.1.7 -> v0.1.8 Updating serde_json v1.0.142 -> v1.0.143 Updating socket2 v0.5.10 -> v0.6.0 Updating syn v2.0.104 -> v2.0.106 Updating tempfile v3.20.0 -> v3.21.0 Updating terminal_size v0.4.2 -> v0.4.3 Updating thiserror v2.0.12 -> v2.0.16 Updating thiserror-impl v2.0.12 -> v2.0.16 Updating thread_local v1.1.8 -> v1.1.9 Updating time v0.3.41 -> v0.3.42 Updating time-core v0.1.4 -> v0.1.5 Updating time-macros v0.2.22 -> v0.2.23 Updating tinyvec v1.9.0 -> v1.10.0 Updating tokio v1.46.1 -> v1.47.1 Updating tokio-util v0.7.15 -> v0.7.16 Updating toml_edit v0.23.3 -> v0.23.4 Updating tracing-attributes v0.1.28 -> v0.1.30 Updating tracing-core v0.1.33 -> v0.1.34 Updating url v2.5.4 -> v2.5.7 Updating wasi v0.14.2+wasi-0.2.4 -> v0.14.3+wasi-0.2.4 Removing winapi v0.3.9 Removing winapi-i686-pc-windows-gnu v0.4.0 Updating winapi-util v0.1.9 -> v0.1.10 Removing winapi-x86_64-pc-windows-gnu v0.4.0 Updating winnow v0.7.12 -> v0.7.13 Adding wit-bindgen v0.45.0 Removing wit-bindgen-rt v0.39.0 Updating zerovec v0.11.2 -> v0.11.4
Cargo
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.
The Cargo binary distributed through with Rust is maintained by the Cargo team for use by the wider ecosystem. For all other uses of this crate (as a binary or library) this is maintained by the Cargo team, primarily for use by Cargo and not intended for external use (except as a transitive dependency). This crate may make major changes to its APIs.
Code Status
Code documentation: https://doc.rust-lang.org/nightly/nightly-rustc/cargo/
Compiling from Source
Requirements
Cargo requires the following tools and packages to build:
cargo
andrustc
- A C compiler for your platform
git
(to clone this repository)
Other requirements:
The following are optional based on your platform and needs.
-
pkg-config
— This is used to help locate system packages, such aslibssl
headers/libraries. This may not be required in all cases, such as using vendored OpenSSL, or on Windows. -
OpenSSL — Only needed on Unix-like systems and only if the
vendored-openssl
Cargo feature is not used.This requires the development headers, which can be obtained from the
libssl-dev
package on Ubuntu oropenssl-devel
with apk or yum or theopenssl
package from Homebrew on macOS.If using the
vendored-openssl
Cargo feature, then a static copy of OpenSSL will be built from source instead of using the system OpenSSL. This may require additional tools such asperl
andmake
.On macOS, common installation directories from Homebrew, MacPorts, or pkgsrc will be checked. Otherwise it will fall back to
pkg-config
.On Windows, the system-provided Schannel will be used instead.
LibreSSL is also supported.
Optional system libraries:
The build will automatically use vendored versions of the following libraries. However, if they are provided by the system and can be found with pkg-config
, then the system libraries will be used instead:
libcurl
— Used for network transfers.libgit2
— Used for fetching git dependencies.libssh2
— Used for SSH access to git repositories.libz
(AKA zlib) — Used by the above C libraries for data compression. (Rust code useszlib-rs
instead.)
It is recommended to use the vendored versions as they are the versions that are tested to work with Cargo.
Compiling
First, you'll want to check out this repository
git clone https://github.com/rust-lang/cargo.git
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.
Releases
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 the changelog.
Reporting issues
Found a bug? We'd love to know about it!
Please report all issues on the GitHub issue tracker.
Contributing
See the Cargo Contributor Guide for a complete introduction to contributing to Cargo.
License
Cargo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.
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.