Skip to content

The crate view page is empty when the only difference to a published crate is - vs _ย #10368

@cyrgani

Description

@cyrgani

Current Behavior

Documentation pages for nonexistent crates like serde-json or proc_macro2, where the only difference in the name is that _ was used but the crate name uses - (and the other way around) do not contain a 404 info (serde-json: Crate not found)
and are empty, compared to a non-existing crate that works fine.

Expected Behavior

A 404 message like for other non-existing crates or ideally also a note that a similar crate with different usage of - or _ exists.

Steps To Reproduce

  1. Go to https://crates.io/crates/serde-json
  2. See the (absence of the) error.

Environment

  • Browser: Chrome 131.0.6778.264, Firefox 134
  • OS: Linux Mint 22

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions