{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihbn6z5mxxtuzqwrayetgnez5mi3pdvlrbvefnnldtphkgi3brk2q",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mjzyapb64fq2"
},
"path": "/t/request-provide-an-official-way-to-deprecate-a-crate-not-yank-yank-is-stupid/24174?page=2#post_21",
"publishedAt": "2026-04-21T21:06:34.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"badges.maintenance",
"Pros-sys 0.8.1 [deprecated] // Lib.rs",
"here are the lines in Cargo.toml",
"Crates.io"
],
"textContent": "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.\n\nAs 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.\n\nSince 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.",
"title": "Request: Provide an official way to *deprecate* a crate. NOT yank. Yank is stupid"
}