Expand description
Checks the licenses of third-party dependencies.
Modules§
Constants§
- EXCEPTIONS 🔒
- 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).
- EXCEPTIONS_
BOOTSTRAP 🔒 - EXCEPTIONS_
CARGO 🔒 - EXCEPTIONS_
CRANELIFT 🔒 - EXCEPTIONS_
GCC 🔒 - EXCEPTIONS_
NON_ 🔒STANDARD_ LICENSE_ DEPS - These dependencies have non-standard licenses but are genenrally permitted.
- EXCEPTIONS_
RUSTBOOK 🔒 - EXCEPTIONS_
RUSTC_ 🔒PERF - EXCEPTIONS_
RUST_ 🔒ANALYZER - EXCEPTIONS_
STDLIB 🔒 - 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).
- EXCEPTIONS_
UEFI_ 🔒QEMU_ TEST - LICENSES 🔒
- These are licenses that are allowed for all crates, including the runtime, rustc, tools, etc.
- NON_
STANDARD_ 🔒LICENSE - Placeholder for non-standard license file.
- PERMITTED_
CRANELIFT_ 🔒DEPENDENCIES - PERMITTED_
DEPS_ 🔒LOCATION - PERMITTED_
RUSTC_ 🔒DEPENDENCIES - Crates rustc is allowed to depend on. Avoid adding to the list if possible.
- PERMITTED_
STDLIB_ 🔒DEPENDENCIES - WORKSPACES 🔒
- The workspaces to check for licensing and optionally permitted dependencies.
Functions§
- check
- Dependency checks.
- check_
license_ 🔒exceptions - Check that all licenses of tool dependencies are in the valid list in
LICENSES
. - check_
permitted_ 🔒dependencies - Checks the dependency of
restricted_dependency_crates
at the given path. Changesbad
totrue
if a check failed. - check_
proc_ 🔒macro_ dep_ list - Ensure the list of proc-macro crate transitive dependencies is up to date
- check_
runtime_ 🔒license_ exceptions - Check that all licenses of runtime dependencies are in the valid list in
LICENSES
. - deps_of 🔒
- Recursively find all dependencies.
- has_
missing_ submodule - Used to skip a check if a submodule is not checked out, and not in a CI environment.
- pkg_
from_ 🔒id - pkg_
from_ 🔒name - Finds a package with the given name.