安装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