The Issue of the Day Before

安裝 Rust 開發環境

shell -

使用 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 安裝 Rust 開發環境。

Why

工欲善其事,必先利其器。雖然今年(2022)在 Python 浪潮之下 RustTIOBE 排行榜前十都擠不進去,但要學這個嚴格的語言當然要將他的開發環境好好裝起來。

What

rustup

rustup 負責安裝及管理 Rust 的工具

How

rust 使用 rustup 來安裝及管理自己與其工具。

Windows

download 符合作業系統版本的安裝檔,然後執行安裝。

Linux

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 一句話 curl https://sh.rustup.rs -sSf | sh,然後照指示作即可。

更新版本

> rustup update

若只要更新 rustup 自己本身,則

> rustup self update
閱讀在雲端