rust-lang / rust-lang/rustup

Optimize downloads with the combined package

Open
#1,160 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Per @cuviper's comment here there's a significant savings in download size to be had from the combined installer, since it can compress the duplicate bins spread across the rustc/std packages.

Adding this capability would require extending the manifest to describe what's in the combined installer; and extending rustup's install planner to substitute it where appropriate.

I can't think of a reason offhand this wouldn't work, though the logic would be somewhat subtle, with the possibility for bugs.

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 how the manifest describes installable packages and how rustup's install planner selects packages. Study the combined installer contents and determine the conditions for substituting it for rustc/std downloads. Done means the manifest can describe the combined package and the planner selects it safely where appropriate, with coverage for edge cases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.