-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 --document-hidden-items flag to cargo doc #7766
Comments
As a workaround, you could use RUSTDOCFLAGS: |
If no one is working on this, I would like to take a stab. |
Currently it looks like I have to spell this:
|
I have a question for the cargo team - how much of rustdoc's flags do you want to expose? Rustdoc has quite a lot of options:
and it seems silly to expose them all. |
There isn't a formal policy, but generally we only add flags if it seems like they would be commonly used. |
As a possibly unintended side-effect, this issue also appears to be blocking CI linting of hidden items on stable Rust. Consider the following example:
This function's However, running Adding
|
From #8001 (comment)
In addition, there is a convention that we normally wait for a flag stabilized and add it to Cargo. Given |
Rustdoc's existing stable --document-private-items flag was split into stable --document-private-items and unstable --document-hidden-items in rust-lang/rust#67875, as these are orthogonal concepts (visibility lower than
pub
, vs attributedoc(hidden)
). Cargo doc has a way to call the first but not the second.The text was updated successfully, but these errors were encountered: