tldr/pages.zh/common/cargo-owner.md

21 lines
612 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# cargo owner
> 管理包在注册表上的所有者。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-owner.html>.
- 邀请指定的用户或团队作为所有者:
`cargo owner --add {{用户名|github:机构名称:团队名称}} {{包名}}`
- 将指定的用户或团队从所有者中删除:
`cargo owner --remove {{用户名|github:机构名称:团队名称}} {{包名}}`
- 列出一个包的所有者:
`cargo owner --list {{包名}}`
- 使用指定的注册表 (注册表名称可以在配置中定义,默认为 <https://crates.io>)
`cargo owner --registry {{名称}}`