macOS に Rust をインストールする

Rust

macOS に Rust をインストールする手順を紹介します。

rustup のインストール

Homebrew を利用して rustup をインストールします。

brew install rustup

rustup を PATH に追加するために、以下のコマンドを実行します。

echo 'export PATH="/opt/homebrew/opt/rustup/bin:$PATH"' >> ~/.zshrc

参考資料