Expand description
Checks the licenses of third-party dependencies.
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 π
- These dependencies have non-standard licenses but are genenrally permitted.
- 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.
- Crates rustc is allowed to depend on. Avoid adding to the list if possible.
- RUNTIME_CRATES π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.
- WORKSPACES π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_cratesat the given path. Changesbadtotrueif a check failed. - Check that all licenses of runtime dependencies are in the valid list in
LICENSES. - Finds all the packages that are in the rust runtime.
- deps_of πRecursively find all dependencies.
- pkg_from_id π
- pkg_from_name πFinds a package with the given name.
Type AliasesΒ§
- ExceptionList π