Skip to content

cargo doc --lib #2557

@nixpulvis

Description

@nixpulvis

I'd love an option to only build and document the lib portion of a crate. I use rustdocs a lot in planning things out and sometimes during a refactor I'll break the binaries but still want to see the docs. Cargo supports cargo build --lib for this, seems like cargo doc --lib is a natural flag to support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyExperience: Easy

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions