-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow skipping of specific dependencies in 'cargo doc' #4049
Comments
Perhaps #4031 would help here? |
I don't think From a non-workspace crate that lists
|
I second this; this is troublesome for gfx-rs, which has many sub-crates which only work on certain platforms. Trying to even run |
This would be great - trying to document even simple crates can easily take a very long time. I think the ideal solution would be a way to (optionally) externally link to docs.rs for crates.io dependencies. But, barring that, simply not linking anywhere would be a nice feature. I really don't need to generate a local copy of Diesel's documentation for a simple one-file library that uses it, for example. |
Worth noting that crates sometime fail to compile the docs while otherwise working fine. This is currently the case with |
What about a |
Sorry. Looks like I only had to check
|
The original request was motivated by wanting to decrease doc-build times, but some of the additional use cases (including my own) are due to wanting documentation for other dependencies even if one fails to build. This case would certainly be well served by an ability to manually skip the problematic crate(s), but also by a If that sounds possible (or easier than |
I'm trying to find a solution for similar issue then came across this old ticket. According to "The Cargo Book",
So probably this issue should be fixed (?) |
Indeed, and the highlighted answer has nothing to do with the issue 😅 |
There is one problem: if Ideally, we need specific packages to be hidden from documentation, but without making package docs generated with a single command isolated from each other which is how |
I'll note here that the link above shows this is relevant to the |
|
Also, would #2025 reduce the impact of this? |
cc @LikeLakers2 |
In regards to the issue that I described at microsoft/windows-rs#2665 (and which was mentioned above by @ChrisDenton)? Yes, I believe it would. I don't use |
When building projects on Windows that use
winapi
somewhere in a downstream dependency, generating documentation takes a long time. Usually in these projects, I don't actually care aboutwinapi
types; the extra 20 minutes before I can use the documentation I do care about is a drag!Does it make sense to be able to skip documentation of a specific crate, like
cargo doc --skip-package winapi
? Any references to the types re-exported by crates I consume directly would have issues, I assume.The text was updated successfully, but these errors were encountered: