Skip to content

Commit 1a02979

Browse files
authored
Merge pull request #2761 from rust-lang/tshepang/date-check
link to a policy on using new external crates
2 parents 661357e + d7f5fd3 commit 1a02979

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/crates-io.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
# crates.io dependencies
22

33
The Rust compiler supports building with some dependencies from `crates.io`.
4-
Examples are `log` and `env_logger`.
54

6-
In general,
7-
you should avoid adding dependencies to the compiler for several reasons:
8-
9-
- The dependency may not be of high quality or well-maintained.
10-
- The dependency may not be using a compatible license.
11-
- The dependency may have transitive dependencies that have one of the above
12-
problems.
13-
14-
<!-- date-check: Aug 2025 -->
15-
Note that there is no official policy for vetting new dependencies to the compiler.
16-
Decisions are made on a case-by-case basis, during code review.
5+
Rust Forge has [official policy for vetting new dependencies].
176

187
## Permitted dependencies
198

20-
The `tidy` tool has [a list of crates that are allowed]. To add a
21-
dependency that is not already in the compiler, you will need to add it to the list.
9+
The `tidy` tool has [a list of crates that are allowed].
10+
To add a dependency that is not already in the compiler, you will need to add it to the list.
2211

2312
[a list of crates that are allowed]: https://github.com/rust-lang/rust/blob/9d1b2106e23b1abd32fce1f17267604a5102f57a/src/tools/tidy/src/deps.rs#L73
13+
[official policy for vetting new dependencies]: https://forge.rust-lang.org/compiler/third-party-out-of-tree#third-party-crates

0 commit comments

Comments
 (0)