Skip to content

Issues with cargo doc --open #8428

Open
@kaimast

Description

@kaimast

Hey all,

I am trying to understand how to use cargo doc locally and not sure if I am encountering a bug or just using it wrong.

When is run cargo doc --open my browser opens to some file store in /run/user/1000/doc/. However that folder only contains an index.html and nothing else.
As a result, I can look at the initial page of the documentation but all links it contains are broken and the style sheet does not seem to load properly either. See the image below:

image

Cargo version is 1.46.0-nightly (c26576f9a 2020-06-23) but I have experienced this with older versions as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugCommand-docO-linuxOS: LinuxS-blocked-externalStatus: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions