rust-lang / rust-lang/rust

download-rustc downloads rustc-dev even when it is not needed

Open
#142,013 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-download-rustc C-discussion T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

The typical reason to download nightly rustc in ./x is to build the standard library. That only needs rustc + std. However, bootstrap currently also downloads rustc-dev. To minimize download time, mobile data usage, and disk space consumption, it'd be nice to avoid the download when it is not needed.

Cc @onur-ozkan

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 in bootstrap's download-rustc path, using ./x and the standard-library build flow described in the issue. Check when rustc-dev is requested versus when only rustc and std are needed. Done means standard-library builds avoid downloading rustc-dev while workflows that need it still receive it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.