-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #112957 - matthiaskrgr:rollup-7ly0nv7, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #111747 (Don't structurally resolve during method ambiguity in probe) - #112704 (slice::from_raw_parts: mention no-wrap-around condition) - #112927 (Fix indentation for where clause in rustdoc pages) - #112933 (Avoid `&format` in error message code) - #112935 (style-guide: Fix typo) - #112941 (typo) - #112942 (style-guide: Organizational and editing tweaks (no semantic changes)) - #112944 (style-guide: Add language disclaiming any effects on non-default Rust styles) - #112948 (Avoid guessing unknown trait implementation in suggestions) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
29 changed files
with
242 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Cargo.toml conventions | ||
# `Cargo.toml` conventions | ||
|
||
## Formatting conventions | ||
|
||
|
@@ -25,16 +25,17 @@ not indent any key names; start all key names at the start of a line. | |
Use multi-line strings (rather than newline escape sequences) for any string | ||
values that include multiple lines, such as the crate description. | ||
|
||
For array values, such as a list of authors, put the entire list on the same | ||
For array values, such as a list of features, put the entire list on the same | ||
line as the key, if it fits. Otherwise, use block indentation: put a newline | ||
after the opening square bracket, indent each item by one indentation level, | ||
put a comma after each item (including the last), and put the closing square | ||
bracket at the start of a line by itself after the last item. | ||
|
||
```rust | ||
authors = [ | ||
"A Uthor <[email protected]>", | ||
"Another Author <[email protected]>", | ||
some_feature = [ | ||
"another_feature", | ||
"yet_another_feature", | ||
"some_dependency?/some_feature", | ||
] | ||
``` | ||
|
||
|
@@ -54,11 +55,11 @@ version = "4.5.6" | |
|
||
## Metadata conventions | ||
|
||
The authors list should consist of strings that each contain an author name | ||
followed by an email address in angle brackets: `Full Name <email@address>`. | ||
It should not contain bare email addresses, or names without email addresses. | ||
(The authors list may also include a mailing list address without an associated | ||
name.) | ||
The authors list, if present, should consist of strings that each contain an | ||
author name followed by an email address in angle brackets: `Full Name | ||
<email@address>`. It should not contain bare email addresses, or names without | ||
email addresses. (The authors list may also include a mailing list address | ||
without an associated name.) | ||
|
||
The license field must contain a valid [SPDX | ||
expression](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.