Skip to content

Commit

Permalink
add cargo newer version (#6)
Browse files Browse the repository at this point in the history
* add cargo newer version

* Update 3.md
  • Loading branch information
asukaminato0721 authored May 21, 2023
1 parent 8114baa commit 6580c77
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion book/src/3.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,16 @@ Jz,Jnz 表示跳转指令,带有跳转地址。

<https://github.com/dtolnay/thiserror>

导入第三方库需要手动编辑 Cargo.toml,当不需要指定复杂属性时,推荐用 cargo-edit 插件。安装 cargo-edit 插件后,可以用命令导入第三方库。
导入第三方库时:

若 Rust 版本 >= 1.62,可直接 [cargo add](https://doc.rust-lang.org/cargo/commands/cargo-add.html)

若 Rust 版本 < 1.62,推荐用 cargo-edit 插件。安装 cargo-edit 插件后,可以用命令导入第三方库。

<https://github.com/killercup/cargo-edit>

也可手动编辑 Cargo.toml。

```bash
cargo install cargo-edit
```
Expand Down

0 comments on commit 6580c77

Please sign in to comment.