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).
- EXCEPTION
S_ πBOOTSTRAP - EXCEPTION
S_ πCARGO - EXCEPTION
S_ πCRANELIFT - EXCEPTION
S_ πGCC - These dependencies have non-standard licenses but are genenrally permitted.
- EXCEPTION
S_ πRUSTBOOK - EXCEPTION
S_ π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). - LICENSES πThese are licenses that are allowed for all crates, including the runtime, rustc, tools, etc.
- NON_
STANDAR πD_ LICENSE Placeholder for non-standard license file. - Crates rustc is allowed to depend on. Avoid adding to the list if possible.
- 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_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.
- pkg_
from_ πid - pkg_
from_ πname Finds a package with the given name.
Type Aliases§
- Exception
List π