mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

Add warning if potentially-scrapable examples are skipped due to dev-dependencies ### What does this PR try to resolve? Another point of feedback I've received on the scrape-examples feature is that the dev-dependency situation is quite confusing and subtle. To make users more aware of the issue, I added a warning where Cargo will alert users when examples are skipped due to a dev-dependency requirement, along with proposing a fix. ### How should we test and review this PR? The test `docscrape::no_scrape_with_dev_deps` has been updated to reflect this new warning. r? `@weihanglo` (PS thank you for the reviews Weihang. I know I'm doing lots of little patches right now to get this feature finalized. If you want to share the reviewing burden on scrape-examples with anyone else, let me know!)