Skip to content

Make it so that yanking every version of a crate prevents that crate from showing up in search results, or any other general list context #773

Closed
@bstrie

Description

@bstrie

Our typical policy for crates.io, designed to prevent rampant spontaneous breakage (a la npm's left-pad fiasco), is that crates cannot be "un-published". We do allow "yanking", however, to allow crate authors to designate that Cargo should not use that particular version unless a lockfile already exists using that version. In the interest of giving crate authors a bit more agency, I propose that yanking every version of a crate should prevent that crate from showing up in search results, category listings, etc.

Rationale: if someone wants to prevent their crate from being used, a crate author can always upload a new version of the crate that deletes (or otherwise breaks) all the code in the crate, and yank every other version. This is more disruptive than simply allowing crates to be hidden from search results if every version is yanked. Furthermore, as per our usual policy, yanked crates would still be usable for those who have already started using them, so no ecosystem breakage will occur. This proposal is not suggesting to remove the crate's landing page itself if every version is yanked, though it may be useful to have some sort of special badge noting that every version is yanked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions