Skip to content

Tracking Issue for doc --scrape-examples #9910

Open
@willcrichton

Description

@willcrichton

Summary

RFC: #3123

Documentation:
https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#scrape-examples
https://doc.rust-lang.org/nightly/rustdoc/scraped-examples.html
Issues: Z-scrape-examples Nightly: rustdoc scrape examples

This feature adds Cargo support for the new rustdoc --scrape-examples flag. The --scrape-examples feature searches crates to find call-sites for functions, and then includes those call-sites as examples when documenting the called function. The Cargo integration is responsible for calling the analysis step (generating a call-locations.json), and then passing that file to rustdoc.

Unresolved issues

None right now

Future extensions

None expected right now

Implementation history

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: A tracking issue for something unstable.S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Z-scrape-examplesNightly: rustdoc scrape examples

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions