add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,33 +1,33 @@
# cargo rustdoc
> 构建 Rust 包的文档。
> 类似于 `cargo doc`,但您可以 `rustdoc` 传递选项。查看 `rustdoc --help` 获取所有可用选项
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-rustdoc.html>.
> 类似于 `cargo doc`,但您可以传递选项给 `rustdoc`。有关所有可用选项,请参见 `rustdoc --help`。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-rustdoc.html>
- `rustdoc` 传递选项
- 传递选项给 `rustdoc`
`cargo rustdoc -- {{rustdoc_options}}`
- 关于文档 lint 发出警告:
- 文档 lint 发出警告:
`cargo rustdoc -- --warn rustdoc::{{lint_name}}`
- 忽略文档 lint:
- 忽略文档 lint
`cargo rustdoc -- --allow rustdoc::{{lint_name}}`
- 包的库生成文档
- 文档包的库:
`cargo rustdoc --lib`
- 指定的二进制文件生成文档
- 文档指定的二进制文件:
`cargo rustdoc --bin {{名称}}`
`cargo rustdoc --bin {{name}}`
- 指定的示例生成文档
- 文档指定的示例:
`cargo rustdoc --example {{名称}}`
`cargo rustdoc --example {{name}}`
- 指定的集成测试生成文档
- 文档指定的集成测试:
`cargo rustdoc --test {{名称}}`
`cargo rustdoc --test {{name}}`