Module deps

Source
Expand description

Checks the licenses of third-party dependencies.

ModulesΒ§

proc_macro_deps πŸ”’

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. Changes bad to true 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.

Type AliasesΒ§

ExceptionList πŸ”’