Skip to content

Include vendored sources in the rust-src component#156196

Open
bjorn3 wants to merge 1 commit intorust-lang:mainfrom
bjorn3:vendor_stdlib
Open

Include vendored sources in the rust-src component#156196
bjorn3 wants to merge 1 commit intorust-lang:mainfrom
bjorn3:vendor_stdlib

Conversation

@bjorn3
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 commented May 5, 2026

In the future this can be used by build-std, but until then it is still useful for allowing rust-analyzer to work offline.

This increases the unpacked size by 24MB (from 116MB to 140MB) and the compressed size by only 2MB (from 18MB to 20MB)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels May 5, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 5, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789

@bjorn3
Copy link
Copy Markdown
Member Author

bjorn3 commented May 5, 2026

After this change rust-analyzer will use the vendored standard library sources out of the box, no need to modify rust-analyzer or change any config.

In the future this can be used by build-std, but until then it is still
useful for allowing rust-analyzer to work offline.

This increases the unpacked size by 24MB (from 116MB to 140MB) and the
compressed size by only 2MB (from 18MB to 20MB)
@Fabian-Gruenbichler
Copy link
Copy Markdown
Contributor

gave this a spin, looks good to me and would allow us to undo a manual workaround we will probably soon add to the Debian rust-src package for improved build-std support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants