rust-lang / rust-lang/rust-analyzer

Set cargo path

Open
#16,204 17 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Would it be possible to add a configuration to be able to set the path to cargo?

Related to https://github.com/rust-lang/rust-analyzer/issues/3154

Setting PATH would not work for my use case. I am using pixi to set up and install the dev environment. This tool installs cargo and all the deps inside {{ workspace_folder }}/.pixi/env.

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 reading the discussion on issue #16204 and the related issue #3154, then trace how rust-analyzer currently discovers and invokes cargo. The requested change is done when users can configure a cargo path that works with environments such as pixi, without relying on PATH.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.