Skip to content

Update the build instructions for the standard library #1389

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Jul 11, 2022

Since rust-lang/rust#95503, library/std means
"build just std and its dependencies"; to get the old behavior that built
proc_macro and test, you need x build library.

  • Update library/std to library
  • Remove the -i suggestions; incremental = true is already the default for most profiles, in
    which case -i does nothing. If you don't have incremental enabled, I still think suggesting -i
    is bad idea, because it's easy to forget once, at which point you'll end up rebuilding the whole
    compiler / standard library.
  • Remove a few repetitive sections and don't discuss incremental in such detail
    Incremental works well enough that it should "just work" for most people;
    I don't think it needs multiple paragraphs of explanation so early in the guide.
  • Clarify that test library/std only tests libstd in a few places

Since rust-lang/rust#95503, `library/std` means
"build just std and its dependencies"; to get the old behavior that built
`proc_macro` and `test`, you need `x build library`.

- Update `library/std` to `library`
- Remove the `-i` suggestions; `incremental = true` is already the default for most profiles, in
  which case `-i` does nothing. If you don't have incremental enabled, I still think suggesting `-i`
  is bad idea, because it's easy to forget once, at which point you'll end up rebuilding the whole
  compiler / standard library.
- Remove a few repetitive sections and don't discuss incremental in such detail
  Incremental works well enough that it should "just work" for most people;
  I don't think it needs multiple paragraphs of explanation so early in the guide.
- Clarify that `test library/std` *only* tests libstd in a few places
@tshepang tshepang merged commit f92263e into rust-lang:master Jul 11, 2022
@jyn514 jyn514 deleted the build-instructions branch July 11, 2022 05:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants