Skip to content

Rust 工具链

安装

使用 rustup 安装工具链,并安装 LLVM 配置 LIBCLANG_PATH/path/to/LLVM/bin

Rustup Toolchain

开发环境所使用的工具链,工具链不同之处在于各种库文件

rustup toolchain list
rustup toolchain install <channel>
rustup default <channel>

Rustup Target

编译支持其它多个平台的目标 每个 toolchain 支持多个目标,默认有 toolchain 自身的环境 每个 toolchain 所支持的目标是分开的

添加当前的 toolchain 支持的 target

rustup target add <target>