Prevent new dependency resolution to a release.

Section: Publish to crates.io

Yank a published version

bash
bash
cargo yank --vers 1.2.3 mycrate
Explanation

Yanking hides a release from new resolution without deleting it.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Publish to crates.io
Save a crates.io API token
Authenticate Cargo for publishing.
OpenIn sheetbashsame section
Manage crate owners
Add a user or team as a crate owner.
OpenIn sheetbashsame section
Search crates.io from the CLI
Find crate names and summaries.
OpenIn sheetbashsame section
Publish the crate
Upload the local package to the configured registry.
OpenIn sheetbashsame section
Install a binary from crates.io
Install a published executable crate.
OpenIn sheetbash2 tag match
Create a package tarball
Build the package as it would be published.
OpenIn sheetbash1 tag match