Request: Provide an official way to *deprecate* a crate. NOT yank. Yank is stupid
Rust Internals [Unofficial]
April 21, 2026
Isn't this what the badges.maintenance field in Cargo.toml is for? If you set badges.maintenance.status = "deprecated" and publish a version then crate indexing sites will pick up on the crate being deprecated.
As an example, here is how pros-sys, a deprecated sys crate for libpros, looks like on lib.rs: Pros-sys 0.8.1 [deprecated] // Lib.rs (notice how the header has "deprecated" and the crate name is crossed out). And here are the lines in Cargo.toml which I used to mark it as deprecated.
Since the official Crates.io site doesn't show badges set in Cargo.toml (even though they are part of the spec), I also added an "Unmaintained" readme tag when I was deprecating pros-sys to make it clear for viewers on that website.
Discussion in the ATmosphere