From f83f9569f4b3a0d401629276642bc0068a49fb3b Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Thu, 10 Mar 2022 19:29:58 -0500 Subject: [PATCH 1/2] Point to the section on crates.io dependencies. --- src/conventions.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/conventions.md b/src/conventions.md index 16828c496..1dac0e0ec 100644 --- a/src/conventions.md +++ b/src/conventions.md @@ -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. @@ -152,3 +149,4 @@ to the compiler. crate-related, often the spelling is changed to `krate`. [tcx]: ./ty.md +[crates]: ./crates-io.md From 8856ea7b1d44cdafd7e9cadc0977f6fc7a3d5977 Mon Sep 17 00:00:00 2001 From: Ivor Wanders Date: Thu, 10 Mar 2022 19:30:16 -0500 Subject: [PATCH 2/2] Update allowed crate list commit to 1.59.0. --- src/crates-io.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crates-io.md b/src/crates-io.md index 896f2697c..8c8fd0c38 100644 --- a/src/crates-io.md +++ b/src/crates-io.md @@ -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