Installation
Install Stable Rust and Cargo
The easiest way to get Cargo is to get the current stable release of Rust by
using the rustup
script:
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
After this, you can use the rustup
command to also install beta
or nightly
channels for Rust and Cargo.
Install Nightly Cargo
To install just Cargo, the current recommended installation method is through the official nightly builds. Note that Cargo will also require that Rust is already installed on the system.
Platform | 64-bit | 32-bit |
---|---|---|
Linux binaries | tar.gz | tar.gz |
MacOS binaries | tar.gz | tar.gz |
Windows binaries | tar.gz | tar.gz |
Build and Install Cargo from Source
Alternatively, you can build Cargo from source.