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 🔒