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 updateUpdate rustup:
rustup self updateCheck the new versions:
rustc --versioncargo --versionrustup --versionNow, update all packages installed with Cargo by running:
cargo install-update -aIf you encounter an error because cargo-update is not installed, install it using:
cargo install cargo-updateLast updated
Was this helpful?