External Publication
Visit Post

Request: Provide an official way to *deprecate* a crate. NOT yank. Yank is stupid

Rust Internals [Unofficial] April 15, 2026
Source

Yank breaks things. It is also way too alarmist.

Library developers nowadays just published a new version with -deprecated suffix or something, but this is a hack.

Other library developers publish a new major versions with empty code. This too is a hack.

I just want a way to mark independent versions of packages or ranges of versions of packages as deprecated along with a message explaining the reason. Not as forceful as a yank. And far more semantically relevant than the two hacks I described.

Tools and automated bots. They are unlikely to recognize the hacks I mentioned as "deprecation" because their semantics aren't defined.

Consumer developers, upon seeing the deprecation messages, they can either choose to ignore them, or fix them in their free time, or let the tools and automated bots (which can now correctly intepret deprecation as deprecation) fix it for them.

NPM has this for decades. It is a known practice.

Discussion in the ATmosphere

Loading comments...