[RUST]编译环境的维护与使用
-------缩略语简表--------
[CLI] Command Line interface
-----------------------
--------rustup section----
[CLI] rustup 无参显示rustup的简要help
[CLI] rustup check version 检查
[CLI] rustup update 更新rust
[CLI] rustup self uninstall 卸载rust
[CLI] rustup doc 开启本地rust帮助文档
-----------------------
--------rustc section------
[CLI] rustc rust编译器,无参显示help,后接 .rs 源文件则为编译目标文件
[CLI] rustc --version 检查当前安装的rust编译器版本
------------------------
---------cargo section-----
[CLI] cargo check 编译检查器,much more faster than build,实际工程利器.
[CLI] cargo build 编译工程,导航至工程根目录执行
[CLI] cargo build --release [optimized] compile [slow!],生成在release文件夹中。
[CLI] cargo run 运行工程(先build再run,修改后自动rebuild,注意看compile提示)
[CLI] cargo clean 删除target文件夹
[CLI] cargo fmt 对工程中的源文件进行源码编码规范化
-------------------------
---------appendix---------
[CLI] rustfmt 对某个rust源码文件进行编码规范
-------------------------

浙公网安备 33010602011771号