Installation

Author: Jase Batchelor

Installing Rust on MacOS


Installing Rust on MacOS can be done using Homebrew, but we will install using the rustup command.

Browse to https://rustup.rs and copy the command into your terminal

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

image

Accept the default install options and hit ‘Return’.

Wait a few moments for the process to complete and then run the following commands to verify the installation.

Check the version of the Rust package manager cargo

cargo --version
# cargo 1.67.1 (8ecd4f20a 2023-01-10)

Check the version of the Rust compiler rustc

rustc --version
# rustc 1.67.1 (d5a82bbd2 2023-02-07)

The rustup command can also keep things up to date. Run the following command regularly

rustup update