File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33The Rust compiler supports building with some dependencies from ` crates.io ` .
44Examples 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
2010The ` tidy ` tool has [ a list of crates that are allowed] . To add a
2111dependency 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
You can’t perform that action at this time.
0 commit comments