-Zrustdoc-scrape-examples
not working if there is no workspace
#13074
Labels
C-bug
Category: bug
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
Z-scrape-examples
Nightly: rustdoc scrape examples
Uh oh!
There was an error while loading. Please reload this page.
Problem
In killercup/test-rustdoc-example-scraping-across-workspace-on-docrs#1 and in rust-lang/docs.rs#2305, we were able to find out that if you re-export non-workspace members, examples would not be scraped for them
Steps
Possible Solution(s)
When scraping examples from a package, cargo only asks for examples that use APIs from specific crates, presumably for performance reasons
This is filtered to workspace members. Really what is needed is filtering for public dependencies which has recently been revived (rust-lang/rfcs#3516).
If the performance hit is not noticeable enough, we likely can remove this completely.
If the performance his is noticeable enough, the path forward:
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: