Files
tldr/pages.zh/common/cargo-package.md

13 lines
423 B
Markdown
Raw Permalink 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 包
> 将本地包组装成可分发的 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`