rust-lang / rust-lang/rust

Tracking Issue for build-std-always

Open
#155,363 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-tracking-issue T-cargo T-compiler T-libs
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

This is a tracking issue for the RFC "3874" (rust-lang/rfcs#3874).

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps
Unresolved Questions
  • What should the build-std.when configuration in .cargo/config.toml be named?
  • What should the "always" and "never" values of build-std be named?
  • What should build-std.crates be named?
  • Should the standard library inherit RUSTFLAGS?
  • Should rust-src be a default component?
  • Should cargo clean delete builds of the standard library?
    • Should cargo clean with the -p flag be able to selectively choose standard library dependencies?
Implementation history

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

Read RFC 3874 and the linked task breakdown first; this is a broad tracking issue rather than a self-contained task. Review the unresolved questions about .cargo/config.toml, build-std values and crates, RUSTFLAGS, rust-src, and cargo clean, then consult the rustc-dev-guide stabilization and documentation instructions. Done requires the implementation, documentation, and stabilization checklist items to be completed.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.