Files
tldr/pages.zh/common/cargo-package.md
Beriholic 33770df77d 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>
2024-03-14 10:25:45 +05:30

14 lines
437 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cargo package
> 将本地包装成一个可分发的 tarball 文件(`.crate` 文件)。
> 类似于 `cargo publish --dry-run`,但具有更多选项。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-package.html>.
- 执行检查并创建一个 `.crate` 文件 (相当于 `cargo publish --dry-run`)
`cargo package`
- 显示将包含在tarball中的文件而不实际创建它
`cargo package --list`