在Debian上更新Rust工具链,可使用rustup工具,具体步骤如下:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh,按提示完成安装。rustup update,将rustup本身更新到最新版本。rustup update;若只想更新特定版本(如稳定版、beta版或nightly版),可分别使用rustup update stable、rustup update beta、rustup update nightly命令。rustup component update <component-name>命令,将<component-name>替换为要更新的组件名称。