cargo*: add Chinese translation (#12312)
* cargo-*: add Chinese translation --------- Co-authored-by: Jack Lin <blueskyson1401@gmail.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
33
pages.zh/common/cargo-run.md
Normal file
33
pages.zh/common/cargo-run.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# cargo run
|
||||
|
||||
> 运行当前的 Cargo 包。
|
||||
> 注意: 执行的二进制文件的工作目录将设置为当前工作目录。
|
||||
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-run.html>.
|
||||
|
||||
- 运行默认的二进制目标:
|
||||
|
||||
`cargo run`
|
||||
|
||||
- 运行指定的二进制文件:
|
||||
|
||||
`cargo run --bin {{名称}}`
|
||||
|
||||
- 运行指定的示例:
|
||||
|
||||
`cargo run --example {{示例名}}`
|
||||
|
||||
- 激活一系列以空格或逗号分隔的功能:
|
||||
|
||||
`cargo run --features {{功能1 功能2 ...}}`
|
||||
|
||||
- 禁用默认功能:
|
||||
|
||||
`cargo run --no-default-features`
|
||||
|
||||
- 激活所有可用的功能:
|
||||
|
||||
`cargo run --all-features`
|
||||
|
||||
- 使用指定的配置文件运行:
|
||||
|
||||
`cargo run --profile {{配置文件名称}}`
|
Reference in New Issue
Block a user