cargo
cargo yank
Mark a published release as unsuitable for ordinary new dependency resolution. Existing lockfiles may retain the release and its archive is not deleted. Coordinate corrective releases and check registry policy. Example format: shell. Illustrative only; do not execute against real accounts or unreviewed sources. Expected result (not executed): Help shows yank and undo options; no release is changed. Common mistake: Using yank to erase leaked credentials or force all users to upgrade.
Formal Syntax & Structure
rust syntaxrust
cargo yank --version VERSION [PACKAGE]Working Example
Example Snippetrust
cargo yank --help