Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDraft of 1.24 announcement #228
Conversation
rust-highfive
assigned
aturon
Feb 13, 2018
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Feb 13, 2018
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
@rust-lang/core please review! |
Mark-Simulacrum
approved these changes
Feb 13, 2018
|
This looks good to me. We may want to add something about the cargo working directory breakage, but I'm not too worried about it. |
| This is still not the end story for compiler performance generally, nor incremental compilation | ||
| specifically. We have a lot more work planned in the future. For example, another change | ||
| related to performance hit stable this release: | ||
| [`codegen-units` is now set to 16 by default](https://github.com/rust-lang/rust/pull/46910). |
This comment has been minimized.
This comment has been minimized.
Mark-Simulacrum
Feb 13, 2018
Member
It might be worth mentioning that this will likely make builds faster, but final products slower.
carols10cents
requested changes
Feb 13, 2018
|
One tiny little misspelling to fix, content looks great! |
| > the compiler, like the RLS and Clippy, in the future. | ||
| Finally, please take note of that `-preview` in the name: `rustfmt` is still not quite | ||
| at 1.0 yet. Some tweaks to the default styles are still occuring, though they're relatively |
This comment has been minimized.
This comment has been minimized.
mgattozzi
reviewed
Feb 14, 2018
|
|
||
| ### Library stabilizations | ||
|
|
||
| If you're a fan of `str::find`, used to find a given `char` inside of a `&str`, you'll be |
This comment has been minimized.
This comment has been minimized.
mgattozzi
Feb 14, 2018
Member
Might want to put which is in front of used. I had to reread the sentence a few times thinking the wording was a typo
michaelwoerister
reviewed
Feb 14, 2018
|
|
||
| #### Incremental compilation | ||
|
|
||
| Back in September, we blogged about [Incremental Compilation](https://blog.rust-lang.org/2016/09/08/incremental.html). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
michaelwoerister
Feb 15, 2018
Contributor
It very much depends on what you are compiling and what changes you made. "twice as fast" seems to be a good bet, looking at http://perf.rust-lang.org. For cargo check it might be different (better, hopefully) but we don't track that on perf.rlo yet.
aturon
reviewed
Feb 15, 2018
| changed, which means that that second build is faster. | ||
|
|
||
| As of Rust 1.24, this is now [turned on by default](https://github.com/rust-lang/cargo/pull/4817). | ||
| This means that your builds should get faster! |
This comment has been minimized.
This comment has been minimized.
aturon
Feb 15, 2018
Member
We should mention that cargo check should be used to get the best possible edit-compile cycle; can reference previous release announcement about that. I don't think we've done enough advertising of this as the recommended workflow.
This comment has been minimized.
This comment has been minimized.
michaelwoerister
Feb 15, 2018
Contributor
Also, do we have documentation somewhere that says when cargo defaults to incr. comp. and when it doesn't?
This comment has been minimized.
This comment has been minimized.
nrc
reviewed
Feb 15, 2018
| `rustup update stable`, `rustfmt-preview` will be updated as well. | ||
|
|
||
| > This strategy is expected to be used for other developer tools that integrate tightly with | ||
| > the compiler, like the RLS and Clippy, in the future. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
steveklabnik
Feb 15, 2018
Author
Member
yeah, but we've never talked about it before, so i phrased it that way
| at 1.0 yet. Some tweaks to the default styles are still occuring, though they're relatively | ||
| minor. Once `rustfmt` hits 1.0, we'll be releasing a `rustfmt` component and | ||
| deprecating `rustfmt-preview`. Since this is the first major component we're distributing | ||
| this way, we wanted to clearly signal that it is still developing. |
This comment has been minimized.
This comment has been minimized.
nrc
Feb 15, 2018
Member
MIght want to say something about this will happen without any user interaction - rustup will handle it.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| deprecating `rustfmt-preview`. Since this is the first major component we're distributing | ||
| this way, we wanted to clearly signal that it is still developing. | ||
|
|
||
| For more, please check out [`rustfmt` on GitHub](https://github.com/rust-lang-nursery/rustfmt). |
This comment has been minimized.
This comment has been minimized.
nrc
Feb 15, 2018
Member
Might be good to say that if you've previously installed rustfmt with Cargo then you'll have to remove it, but that rustup should tell you about that.
This comment has been minimized.
This comment has been minimized.
|
updated to incorporate everyone's feedback |
steveklabnik commentedFeb 13, 2018
No description provided.