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).
- These dependencies have non-standard licenses but are genenrally permitted.
- 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.
- Placeholder for non-standard license file.
- Crates rustc is allowed to depend on. Avoid adding to the list if possible.
- The workspaces to check for licensing and optionally permitted dependencies.
Functions§
- Dependency checks.
- Check that all licenses of tool dependencies are in the valid list in
LICENSES
. - Checks the dependency of
restricted_dependency_crates
at the given path. Changesbad
totrue
if a check failed. - Check that all licenses of runtime dependencies are in the valid list in
LICENSES
. - deps_of 🔒Recursively find all dependencies.
- Used to skip a check if a submodule is not checked out, and not in a CI environment.
- Finds a package with the given name.