Skip to content

Add support for blacklisting crates #536

Closed
@pietroalbini

Description

@pietroalbini

Some of the crates on docs.rs are blacklisted for legal reasons, but are still up on crates.io. Before #529 was merged we disabled them globally by blocking the route in nginx, but I'd like to move away from that model.

Deleting the old content is already covered by the delete-crate command, but even with that new releases would still be published. We need to add a blacklisted_crates table containing the names of those crates, and change the docbuilder to refuse building those crates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mentorThis has instructions for getting started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions