Skip to content

Commit 47d15af

Browse files
authored
Consolidate crates.io convention section (rust-lang#1326)
1 parent ede045c commit 47d15af

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/doc/rustc-dev-guide/src/conventions.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ if foo {
101101

102102
# Using crates from crates.io
103103

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

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

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

154151
[tcx]: ./ty.md
152+
[crates]: ./crates-io.md

src/doc/rustc-dev-guide/src/crates-io.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ to the compiler unless there is a good reason to do so.
2121
The `tidy` tool has [a list of crates that are allowed]. To add a
2222
dependency that is not already in the compiler, you will need to add it to the list.
2323

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

0 commit comments

Comments
 (0)