Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update the build instructions for the standard library #1389

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants