rust-lang / rust-lang/rust

offline installer should include `rust-src`

Open
#136,268 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug O-windows S-needs-info T-infra
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

offline installer should include rust-src by default, to avoid to let user manually to download the 2MB file and put into a specific correct folder.

I downloaded rust-1.84.0-x86_64-pc-windows-gnu.msi to avoid to install 7GB msvc c++ compiler and linker, but the language-server rust-analyzer refused to work because of lacking rust-src in the offline installation.
the resolution is to manually download https://static.rust-lang.org/dist/rust-src-1.84.0.tar.gz. found from https://github.com/rust-lang/rust-analyzer/issues/4172#issuecomment-1664348160 which is not in installation part in the rust documentation.
and finally need to construct the correct folder path.

Therefore, the offline installers should include the 2MB content by default to prevent the users run into a trap

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 locating the offline installer packaging entry point and the existing component inclusion rules in the rust-lang/rust repository. Check how the matching rust-src archive is represented in installer inputs. Done means offline installers include rust-src by default and users no longer need to download it or construct its folder path manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.