Install Rustup
使用Homebrew安装:
brew install rustup
rustup run --install stable cargo
rustup default stable第一步结束之后, 会创建一个~/.rustup的文件夹. 第二步安装的stable cargo等工具就应该放在~/.rustup/toolchains/stable-aarch64-apple-darwin/bin中. 需要手动将这个路径添加到PATH环境变量中.
然后, 运行第三步, 完成最后的设置, 指定rust的版本是stable
此时, 可以使用Cargo进行配置