-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 Readme #105553
Update Readme #105553
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
**Note: this README is for _users_ rather than _contributors_. If you wish to | ||
_contribute_ to the compiler, you should read the | ||
[Getting Started][gettingstarted] section of the rustc-dev-guide instead. You | ||
can ask for help in the [#new members Zulip stream][new-members].** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Markdown doesn't need orphan line starts like this: The previous way puts each individual topic on its own lines. That way diffs affect the appropriate lines and not irrelevant content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That isn't consistent with how other paragraphs in the Readme are formatted though. What makes these two different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for missing this question.
There's no need for excessive consistency. Alternatively, you can make them consistent in the more topic-oriented direction. Either a rule should be programmatically enforced, which I am fine with, or the formatting style should incline towards whatever is most natural, and thus will be most-preserved by subsequent edits.
I also didn't highlight all the line endings that I would not have changed this way, I merely did it to two examples to set a trend.
Systems such as Ubuntu 20.04 LTS do not create the necessary `python` command | ||
by default when Python is installed that allows `x.py` to be run directly. In | ||
that case, you can either create a symlink for `python` (Ubuntu provides the | ||
`python-is-python3` package for this), or run `x.py` using Python itself: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the same reason, this should probably be broken up by sentence/fragment topic and not by a simple numeric line break.
No strong opinions myself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually want to fuss much over this, because I think it's overall still an improvement. It's just formatting by line is arbitrary in a document that will be frequently read in a format that will concatenate all subsequent lines if they are without linebreaks, and inconsistency in formatting usually is between two different emergent formats, so we have an option of choosing one.
# then replace "x86_64" below with "i686". If you've already got Git, | ||
# Python, or CMake installed and in PATH you can remove them from this list. | ||
# Note that it is important that you do **not** use the 'python2', 'cmake', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obviously, I think this is largely an improvement.
# and 'ninja' packages from the 'msys2' subsystem. The build has | ||
# historically been known to fail with these packages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can move "The build" to a new line. Not required.
Right now, building Rust only works with some known versions of Visual Studio. | ||
If you have a more recent version installed and the build system doesn't |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good.
understand, you may need to force rustbuild to use an older version. This can | ||
be done by manually calling the appropriate vcvars file before running the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optionally linebreak on "This".
| Linux (kernel 3.2, glibc 2.17 or later) | ✓ | ✓ | | ||
| macOS (10.7 Lion or later) | (\*) | ✓ | | ||
| Platform / Architecture | x86 | x86_64 | | ||
|-----------------------------------------|------|--------| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's choose an alignment for these if we're going to fuss over them.
|-----------------------------------------|------|--------| | |
|-----------------------------------------|:----:|:------:| |
| Windows (7, 8, 10, ...) | ✓ | ✓ | | ||
| Linux (kernel 3.2, glibc 2.17 or later) | ✓ | ✓ | | ||
| macOS (10.7 Lion or later) | (\*) | ✓ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They can remain left-justified in the source, obviously.
(\*): Apple dropped support for running 32-bit binaries starting from macOS 10.15 and iOS 11. | ||
Due to this decision from Apple, the targets are no longer useful to our users. | ||
Please read [our blog post][macx32] for more info. | ||
(\*): Apple dropped support for running 32-bit binaries starting from macOS | ||
10.15 and iOS 11. Due to this decision from Apple, the targets are no longer | ||
useful to our users. Please read [our blog post][macx32] for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one of the examples of "less good". This is topic-split and now it gets line-broken and the next topic gets connected in unnecessarily.
the ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory will be | ||
`build\x86_64-pc-windows-msvc\doc`. | ||
The generated documentation will appear under `doc` in the `build` directory | ||
for the ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awkward Latin abbreviation in the middle of nowhere, worsens readability for no good reason, doesn't have to be changed her but if you have an opinion on what else could go here I'd be happy to see it.
for the ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory | |
for the ABI used. That is, if the ABI was `x86_64-pc-windows-msvc`, the directory |
"snapshot" version of itself (made in an earlier stage of development). As | ||
such, source builds require an Internet connection to fetch snapshots, and an | ||
OS that can execute the available snapshot binaries. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, opportunity for topical split:
"snapshot" version of itself (made in an earlier stage of development). As | |
such, source builds require an Internet connection to fetch snapshots, and an | |
OS that can execute the available snapshot binaries. | |
"snapshot" version of itself (made in an earlier stage of development). | |
As such, source builds require an Internet connection to fetch snapshots, | |
and an OS that can execute the available snapshot binaries. |
source tree to determine various configuration settings for the build. Copy | ||
the default `config.toml.example` to `config.toml` to get started. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
source tree to determine various configuration settings for the build. Copy | |
the default `config.toml.example` to `config.toml` to get started. | |
source tree to determine various configuration settings for the build. | |
Copy the default `config.toml.example` to `config.toml` to get started. |
☔ The latest upstream changes (presumably #106111) made this pull request unmergeable. Please resolve the merge conflicts. |
The Readme was modified quite a bit in #105465. I will open a new PR based on the new version with requested edits. |
Improve Markdown styling in README Update Readme to use consistent line lengths. Also update some formatting and links. (Followup to rust-lang#105553). r? `@workingjubilee`
Improve Markdown styling in README Update Readme to use consistent line lengths. Also update some formatting and links. (Followup to rust-lang#105553). r? ``@workingjubilee``
Update Readme to use consistent line lengths. Also update some formatting and links.