安裝curl
經過 rustup 下載 Rust,這是一個管理 Rust 版本和相關工具的命令行工具工具
在 Linux 上安裝 rustup$ curl https://sh.rustup.rs -sSf | sh
ui
檢查rustc安裝版本url
$ rustc --version
rustc 1.46.0 (04488afe3 2020-08-24)
命令行
使用cargocargo new hello
cargo run
cargo build
cargo check
code