Skip to content

Commit

Permalink
update src/cargo/conventions.md (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangMengabc authored Jun 15, 2024
1 parent 34b81df commit 3818f83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions english/src/cargo/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ foo
└── my_other_bin.rs
```

To tell `cargo` to compile or run this binary as opposed to the default or other
binaries, we just pass `cargo` the `--bin my_other_bin` flag, where `my_other_bin`
is the name of the binary we want to work with.
To tell `cargo` to only compile or run this binary, we just pass `cargo` the
`--bin my_other_bin` flag, where `my_other_bin` is the name of the binary we
want to work with.

In addition to extra binaries, `cargo` supports [more features] such as
benchmarks, tests, and examples.
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ foo
└── my_other_bin.rs
```

为了使得 `cargo` 编译或运行这个二进制可执行文件而不是默认或其他二进制可执行文件,我们只需给 `cargo` 增加一个参数 `--bin my_other_bin`,其中 `my_other_bin` 是我们想要使用的二进制可执行文件的名称。
为了使得 `cargo` 只编译或运行这个二进制可执行文件,我们只需给 `cargo` 增加一个参数 `--bin my_other_bin`,其中 `my_other_bin` 是我们想要使用的二进制可执行文件的名称。

除了可添加其他二进制可执行文件外,`cargo` 还支持[更多功能][more features],如基准测试,测试和示例。

Expand Down

0 comments on commit 3818f83

Please sign in to comment.