Linux command
cargo-yank 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Yank version from registry
cargo yank [crate@1.0.0]
Yank with version flag
cargo yank --version [1.0.0] [crate]
Undo yank
cargo yank --undo [crate@1.0.0]
Yank from alternate registry
cargo yank --registry [my-registry] [crate@1.0.0]
说明
cargo yank marks a crate version as yanked on the registry. Yanked versions cannot be used as new dependencies but existing Cargo.lock files continue to work. Does not delete data. Requires authentication via cargo login.
参数
- --version _version_
- Version to yank
- --undo
- Restore yanked version
- --registry _name_
- Target registry
- --index _url_
- Registry index URL
- --token _token_
- API token
- -h, --help
- Print help information
- -v, --verbose
- Verbose output
- -q, --quiet
- Suppress output
- --color _WHEN_
- Coloring: auto, always, never
FAQ
What is the cargo-yank command used for?
cargo yank marks a crate version as yanked on the registry. Yanked versions cannot be used as new dependencies but existing Cargo.lock files continue to work. Does not delete data. Requires authentication via cargo login.
How do I run a basic cargo-yank example?
Run `cargo yank [crate@1.0.0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --version _version_ do in cargo-yank?
Version to yank