rust-lang / rust-lang/rust-analyzer

Cargo `build-dir` support

Open
#20,150 10 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The Cargo team has done a Call for Testing for the unstable build-dir and I'm looking into stabilizing it. This allows users to move intermediate artifacts out of their target-dir. With how r-a is using target-dir (e.g. rust-lang/rust-analyzer#20072), it seems that build-dir will be the more appropriate location moving forward.

Note:

  • build-dir files do not have compatibility guarantees
  • In the future we may change the default build-dir
  • In the future, we may change the layout of build-dir

See https://github.com/rust-lang/cargo/issues/14125#issuecomment-2802967106

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 tracing rust-analyzer's current use of target-dir and reviewing the Cargo build-dir proposal linked in the issue. Determine which intermediate artifacts are affected and what Cargo's compatibility and layout caveats mean for rust-analyzer; done should be defined as complete build-dir support, but the issue does not name files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.