Skip to content

Commit 4819132

Browse files
committed
there is a policy now
1 parent 367119f commit 4819132

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/crates-io.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,12 @@
33
The Rust compiler supports building with some dependencies from `crates.io`.
44
Examples are `log` and `env_logger`.
55

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.
6+
Rust Forge has [official policy for vetting new dependencies].
177

188
## Permitted dependencies
199

2010
The `tidy` tool has [a list of crates that are allowed]. To add a
2111
dependency that is not already in the compiler, you will need to add it to the list.
2212

2313
[a list of crates that are allowed]: https://github.com/rust-lang/rust/blob/9d1b2106e23b1abd32fce1f17267604a5102f57a/src/tools/tidy/src/deps.rs#L73
14+
[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)