rust-lang / rust-lang/cargo

Feature: namespace intermediate build artifacts under host triple

Open
#3,595 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-caching A-layout C-feature-request S-needs-design Z-target-applies-to-host
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

Sometimes you have code checked out in a folder shared between multiple systems, via network drives, shared VM folders, etc.

At the moment, if you switch systems and do a cargo build, you will tend to get strange errors from any libraries with build scripts, and you must do a cargo clean before you can proceed.

It would be convenient if cargo namespaced intermediate build artifacts based on the host triple, so that you could switch hosts without rebuilding everything from scratch: only the final product would need to be rebuilt.

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

No files, tests, or entry points are named in the issue. Start by tracing how Cargo selects its target directory and handles host triples, then determine how intermediate artifacts can be separated while preserving reusable outputs. Done means switching hosts in a shared checkout no longer requires cargo clean and only the final product is rebuilt.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.