Closed
Description
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:
- It’s very hard to discover
- Cargo does not allow giving arbitrary parameters to rustdoc: cargo-doc: enable using --html-in-header and other rustdoc flags #331
Could Cargo do this itself e.g. when [lib] doc-private = true
is set in Cargo.toml
?