Skip to content

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

Open
@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

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.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