rust update 升級

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

參考資料

The Rust toolchain installer

中的

  • Keeping Rust up to date 章節
  • Working with nightly Rust 章節。
發佈了59 篇原創文章 · 獲贊 20 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章