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

Consolidate crates.io convention section #1326

Merged
merged 2 commits into from
Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ if foo {

# Using crates from crates.io

It is allowed to use crates from crates.io, though external
dependencies should not be added gratuitously. All such crates must
have a suitably permissive license. There is an automatic check which
inspects the Cargo metadata to ensure this.
See the [crates.io dependencies][crates] section.

<a name="er"></a>

Expand Down Expand Up @@ -152,3 +149,4 @@ to the compiler.
crate-related, often the spelling is changed to `krate`.

[tcx]: ./ty.md
[crates]: ./crates-io.md
2 changes: 1 addition & 1 deletion src/crates-io.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ to the compiler unless there is a good reason to do so.
The `tidy` tool has [a list of crates that are allowed]. To add a
dependency that is not already in the compiler, you will need to add it to the list.

[a list of crates that are allowed]: https://github.com/rust-lang/rust/blob/19ecce332e56941ea0dd2a805270faa102acdb14/src/tools/tidy/src/deps.rs#L59
[a list of crates that are allowed]: https://github.com/rust-lang/rust/blob/9d1b2106e23b1abd32fce1f17267604a5102f57a/src/tools/tidy/src/deps.rs#L73