Skip to content

Is there a way to run cargo doc and only get the documentation for direct dependencies of my project?  #6421

Closed
@arthmis

Description

@arthmis

Describe the problem you are trying to solve

Whenever I run cargo doc, it builds the documentation for all the dependencies of the project. The problem is that I don't want all the documentation for every crate. I only want the documentation for the crates that are direct dependencies of my project and not the dependencies of my project's dependencies.

Describe the solution you'd like

I would prefer if the default behavior of cargo doc only builds the documentation for my project and its direct dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-doc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions