add rust1

This commit is contained in:
539943419 committed 2024-12-14 22:20:19 +08:00
1 parent fa357afdd8
commit 44910b3d68
3 files changed
+581

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
# 常用的命令
## 初始化项目
```shell
cargo new hello_world
```
## 添加依赖
```shell
cargo add xxx
```
## 检查项目
```shell
cargo check
```
## 运行项目
```shell
cargo run
```
## 编译项目
```shell
cargo build
```
## 发布项目 (编译时间更长,但是会做一些优化)
```shell
cargo build --release
```