rust update 升级
使用强大的 rustup
工具来完成rust的版本升级。
稳定版和nightly版的升级
命令行输入:
rustup update
运行结果:
rustup升级
命令行输入:
rustup self update
运行结果:
nightly版安装
命令行输入
rustup install nightly
运行结果
$ rustup install nightly
info: syncing channel updates for 'nightly'
info: downloading toolchain manifest
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'rust-docs'
info: downloading component 'cargo'
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'rust-docs'
info: installing component 'cargo'
nightly installed: rustc 1.9.0-nightly (02310fd31 2016-03-19)
查询版本
rustup run nightly rustc --version
选择稳定版或者nightly版
如果想长期使用 nightly版。
rustup default nightly
参考资料
中的
Keeping Rust up to date
章节Working with nightly Rust
章节。