Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable --document-private-items for targets that have it by default #8237

Closed
k-stanislawek opened this issue May 12, 2020 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@k-stanislawek
Copy link

Building a documentation for a Rust project - which at this stage is just a single crate with single binary target - I've discovered that all private items are included. Running -vv helped me discover that Cargo has ran rustdoc with flag --document-private-items, even though I haven't passed it to cargo. There is no option cargo doc --no-document-private-items either.

I would like to have such option.

@k-stanislawek k-stanislawek added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label May 12, 2020
@ehuss
Copy link
Contributor

ehuss commented May 23, 2020

Thanks for the report! Closing as a duplicate of #7963.

@ehuss ehuss closed this as completed May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants