安装 Rust
Linux
打开终端,输入以下命令
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
如果安装成功,将出现
Rust is installed now. Great!
更新
$ rustup update
卸载
$ rustup self uninstall
检查是否安装成功
$ rustc -V
本地文档
$ rustup doc
使用浏览器打开本地文档。
可以在本地文档上查找标准库信息。
配置vscode
Rust 插件
社区驱动的 rust-analyzer
。
其他好用的插件
Even Better TOML
, 支持.toml
文件完整特性。Error Lens
,更好的获得错误展示。One Dark Pro
,VSCode 主题。CodeLLDB
,Debugger 程序。