Skip to content

使用homebrew进行安装 ​

Plain
brew install rustup-init

rustup install

rustup component add rust-src  // 安装标准库的源代码

检查是否安装成功

Plain
% rustc --version
rustc 1.96.0 (ac68faa20 2026-05-25)
% cargo --version
cargo 1.96.0 (30a34c682 2026-05-25)
% rustup --version
rustup 1.29.0 (2026-03-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: the currently active `rustc` version is `rustc 1.96.0 (ac68faa20 2026-05-25)`

Java · Golang · Rust