Skip to content

[rustdoc] Add new (cfg) feature search filtering/tab #144263

@ralfbiedert

Description

@ralfbiedert

When searching via s, it would be nice to find items affected by a certain feature, and to allow valid feature names to be searchable.

Take Tokio, which reports it supports the test-util feature:

Image

When I now try to search for test-util, I get this:

Image

Given that the docs are already somewhat aware of the used features per item

Image

It would be nice if, for example, the search result tabs could have a category listing the affected items instead:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions