Skip to content

Put the workspace crates first in the side panel #85759

@real-felix

Description

@real-felix

Describe the problem you are trying to solve

I try to document a project with a few crates in a workspace. The issue is that there is a ton of dependencies (that I'd like to browse when needed), and my crates are drowned in the middle of those dependencies in the side panel.

It's impossible to see in a glance which crates are in the project, and thus to browse the project correctly.

Describe the solution you'd like

I think that the crates from the workspace should come first if the side panel, and then the dependencies. If there are 2 crates foo and bar in the workspace, the panel should looks like that:

CRATES
---------
bar
foo
---------
all
the
dependencies

Activity

transferred this issue fromrust-lang/cargoon May 27, 2021
ehuss

ehuss commented on May 27, 2021

@ehuss
Contributor

Transferred to rust-lang/rust, as that is where rustdoc lives.

Also, this is somewhat similar to #16328 and #81031.

real-felix

real-felix commented on May 27, 2021

@real-felix
Author

Sorry for that: since I type cargo doc to generate the doc, I thought it was a cargo issue.

added
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
A-rustdoc-uiArea: Rustdoc UI (generated HTML)
on May 28, 2021
changed the title [-]Put the worspace crates first in the side panel[/-] [+]Put the workspace crates first in the side panel[/+] on Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehuss@real-felix@LeSeulArtichaut

        Issue actions

          Put the workspace crates first in the side panel · Issue #85759 · rust-lang/rust