rust-lang / rust-lang/rust

Rustdoc search doesn't show workspace crates in results

Open
#162,161 4 comments 1 reaction 1 assignee View on GitHub

@lolbinarycat is already working on this.

Since Sep 3, 2026.

A-rustdoc-search C-bug T-rustdoc T-rustdoc-frontend
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Code

https://docs.rs/bevy/latest/bevy/index.html

Reproduction Steps

  1. open https://docs.rs/bevy/latest/bevy/index.html
  2. type solari, scene or picking
  3. see how results show concrete types, but not bevy::solari etc. directly

Expected Outcome

It should treat workspace crates as modules when they're not top-level, allowing them to appear in search results

Actual Output

Search does not show results for workspace crates like bevy::solari, bevy::scene, etc.

Version

docs.rs build: 34a12160ded44b303795066b8c53e4bdae865e51 2026-08-11 but i'm pretty sure thats irrelevant

Additional Details

At bevy we've put a lot of effort into crate/module-level docs. Solari is a bad example of this which i only chose due to its unique name and few public items. bevy::scene, bevy::picking, bevy::ecs are better examples that really show why its a pretty rough corner that its hard for people to find these docs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.