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
章節。