MAC系统安装 Rust
可以通过运行以下命令获得 C 语言编译器:
$ xcode-select --install
MAC 系统安装 Rust 和 Linux 差不多
自动安装
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
手动安装
由于 MAC 电脑存在 intel 和 M系列的芯片, 手动安装需要根据电脑的架构下载对应的安装文件.
M 芯片下载 rust-1.68.2-aarch64-apple-darwin.pkg
intel 芯片下载 rust-1.68.2-x86_64-apple-darwin.pkg
以 intel 芯片为例. 将rust-1.68.2-x86_64-apple-darwin.pkg 下载到 ~/Downloads 文件夹下.
$ wget -c https://static.rust-lang.org/dist/rust-1.68.2-x86_64-apple-darwin.pkg
$ open rust-1.68.2-x86_64-apple-darwin.pkg
随后会打开 Rust 的安装向导, 根据向导提示一步一步的安装完成即可.

The Rust Compiler 安装器
