Update Rust

Update Rust to newer versions

If Rust and Cargo binaries aren't in your path, run:

. "$HOME/.cargo/env"

Update Rust and Cargo:

rustup update

Update rustup:

rustup self update

Check the new versions:

rustc --version
cargo --version
rustup --version

Now, update all packages installed with Cargo by running:

cargo install-update -a

If you encounter an error because cargo-update is not installed, install it using:

cargo install cargo-update

Last updated

Was this helpful?