The Rust compiler supports building with some dependencies from crates.io
. Examples are log
and env_logger
.
In general, you should avoid adding dependencies to the compiler for several reasons:
Note that there is no official policy for vetting new dependencies to the compiler. Decisions are made on a case-by-case basis, during code review.
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.