rust-lang / rust-lang/rust-analyzer

Feature Request: Link to crates.io on hover in Cargo.lock and Cargo.toml

Open
#13,532 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature S-needs-toml
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

What do you want?

When hovering over crate names in Cargo.lock and Cargo.toml, I'd like a link to docs for that crate, with an embedded short description. Note that this already works within .rs files; simply hover over the crate name of an import.

Ideally, this should link to the version that I'm actually relying on.

Why do you want this?

When getting familiar with new code bases, it can be challenging to understand what various crates are used for. Being able to skim these all together would be very helpful and reduce the need to leave comments explaining what dependencies are for.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the existing crate-name hover behavior in .rs files with hover handling for Cargo.lock and Cargo.toml. Determine where dependency versions and crate descriptions are available; done means hovering a crate in both manifest files shows a short description and links to the relied-on crates.io version.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.