Expand description
Checks the licenses of third-party dependencies.
Constants
- These are exceptions to Rust’s permissive licensing policy, and should be considered bugs. Exceptions are only allowed in Rust tooling. It is crucial that no exception crates be dependencies of the Rust runtime (std/test).
- LICENSES 🔒These are licenses that are allowed for all crates, including the runtime, rustc, tools, etc.
- Crates rustc is allowed to depend on. Avoid adding to the list if possible.
- These are the root crates that are part of the runtime. The licenses for these and all their dependencies must not be in the exception list.
Functions
- Dependency checks.
- Check that all licenses are in the valid list in
LICENSES
. - Checks the dependency of
restricted_dependency_crates
at the given path. Changesbad
totrue
if a check failed. - Finds all the packages that are in the rust runtime.
- Recursively find all dependencies.
- Finds a package with the given name.