rust basic
Contents
“rust basic”
install
wsl, ubuntu install rust
curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh
查看版本
rustc --version
更新rust 版本
rustup update
RUSTUP_HOME
/home/wiloon/.rustup
CARGO_HOME
/home/wiloon/.cargo
env
/home/wiloon/.profile /home/wiloon/.bashrc /home/wiloon/.zshenv
commands
rustup update
cargo build
cargo run
cargo test
cargo doc
cargo publish
cargo --version
cargo new hello-rust
cargo run
vscode plugin rust
- rust-anlyzer (RA)
- Rust 语言服务器 (RLS)
hello world
cargo new hello-rust
https://kaisery.github.io/trpl-zh-cn/ch01-01-installation.html
Author -
LastMod 2021-01-01