mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 04:42:51 +00:00
23 lines
788 B
Plaintext
23 lines
788 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cargo yank
|
|
|
|
> Remove a pushed crate from the index. This should only be used when you accidentally release a significantly broken crate.
|
|
> Note: this does not remove any data. The crate is still present after a yank - this just prevents new projects from using it.
|
|
> More information: <https://doc.rust-lang.org/cargo/commands/cargo-yank.html>.
|
|
|
|
- Yank the specified version of a crate:
|
|
|
|
`cargo yank {{crate}}@{{version}}`
|
|
|
|
- Undo a yank (i.e. allow downloading it again):
|
|
|
|
`cargo yank --undo {{crate}}@{{version}}`
|
|
|
|
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):
|
|
|
|
`cargo yank --registry {{name}} {{crate}}@{{version}}`
|