Skip to main content

COMMON_SPDX_LICENSES

Constant COMMON_SPDX_LICENSES 

Source
pub const COMMON_SPDX_LICENSES: &[&str];
Expand description

Commonly used SPDX license identifiers.

This is a curated shortlist, not the SPDX registry — the registry has over 700 entries, and a license absent from this list is very often still perfectly valid. validate_spdx_license says so rather than claiming the identifier does not exist.

Every entry is checked against the official registry by scripts/check-spdx-list.py, which fails CI on a typo or on an identifier SPDX has deprecated.

Sorted, and kept sorted, so additions are easy to review.

§A note on SSPL-1.0

It is a real SPDX identifier and is listed here, but it is not OSI-approved — it is source-available rather than open source. If your extension is bound by a policy that requires an OSI-approved license, this list is not the thing that will tell you.