Skip to content

cargo doc: add option to document private types #1520

Closed
@SimonSapin

Description

@SimonSapin

rustdoc can include private items in the generated documentation: rust-lang/rust#15347 (comment)
This is triggered by passing --no-defaults --passes "collapse-docs" --passes "unindent-comments" to it. This has two issues:

Could Cargo do this itself e.g. when [lib] doc-private = true is set in Cargo.toml?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions