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 Readme #105553

Closed
wants to merge 1 commit into from
Closed

Update Readme #105553

wants to merge 1 commit into from

Conversation

atouchet
Copy link
Contributor

Update Readme to use consistent line lengths. Also update some formatting and links.

@rustbot
Copy link
Collaborator

rustbot commented Dec 11, 2022

r? @Mark-Simulacrum

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added A-meta Area: Issues about the rust-lang/rust repository. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 11, 2022
Comment on lines +8 to +11
**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].**
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Comment on lines +35 to +38
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:
Copy link
Contributor

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.

@Mark-Simulacrum
Copy link
Member

r? @workingjubilee

No strong opinions myself.

Copy link
Contributor

@workingjubilee workingjubilee left a 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.

Comment on lines +139 to +141
# 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',
Copy link
Contributor

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.

Comment on lines +142 to +143
# and 'ninja' packages from the 'msys2' subsystem. The build has
# historically been known to fail with these packages.
Copy link
Contributor

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.

Comment on lines +178 to +179
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good.

Comment on lines +180 to +181
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
Copy link
Contributor

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 |
|-----------------------------------------|------|--------|
Copy link
Contributor

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.

Suggested change
|-----------------------------------------|------|--------|
|-----------------------------------------|:----:|:------:|

Comment on lines +243 to +245
| Windows (7, 8, 10, ...) | ✓ | ✓ |
| Linux (kernel 3.2, glibc 2.17 or later) | ✓ | ✓ |
| macOS (10.7 Lion or later) | (\*) | ✓ |
Copy link
Contributor

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.

Comment on lines -238 to +249
(\*): 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.
Copy link
Contributor

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
Copy link
Contributor

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.

Suggested change
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

Comment on lines +235 to +237
"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.
Copy link
Contributor

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:

Suggested change
"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.

Comment on lines +80 to +81
source tree to determine various configuration settings for the build. Copy
the default `config.toml.example` to `config.toml` to get started.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@bors
Copy link
Contributor

bors commented Dec 24, 2022

☔ The latest upstream changes (presumably #106111) made this pull request unmergeable. Please resolve the merge conflicts.

@atouchet
Copy link
Contributor Author

The Readme was modified quite a bit in #105465. I will open a new PR based on the new version with requested edits.

@atouchet atouchet closed this Dec 24, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 18, 2023
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`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 18, 2023
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``
@atouchet atouchet deleted the readme branch January 18, 2023 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-meta Area: Issues about the rust-lang/rust repository. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants