Skip to content

Clipboard button should copy version for crate, not just the name #106990

@jyn514

Description

@jyn514

Take https://docs.rs/tokio/1.24.1/tokio/index.html as an example: clicking the clipboard will copy tokio to the clipboard, but ideally it would copy tokio = "1.24.1", like https://docs.rs/crate/tokio/latest does. Rustdoc already has this information because it shows the crate version in the sidebar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions