Skip to main content

quack_rs/validate/
spdx_exceptions.rs

1// SPDX-License-Identifier: MIT
2// Copyright 2026 Tom F. <https://github.com/tomtom215/>
3// My way of giving something small back to the open source community
4// and encouraging more Rust development!
5
6//! The SPDX license-exception identifiers accepted after `WITH`.
7
8/// Every current (non-deprecated) SPDX license-exception identifier.
9///
10/// Unlike [`COMMON_SPDX_LICENSES`][super::spdx::COMMON_SPDX_LICENSES], this is
11/// the **whole** registry, not a shortlist: there are few enough exceptions to
12/// carry them all. Taken from `json/exceptions.json` in
13/// `spdx/license-list-data`, license list version 3.29.0 (85 current
14/// exceptions; the deprecated `Nokia-Qt-exception-1.1` is left out).
15///
16/// `scripts/check-spdx-list.py` fails CI if an entry is not a current SPDX
17/// exception, and lists exceptions the registry has gained since, so the list
18/// is refreshed rather than silently falling behind.
19///
20/// Sorted (byte order), and kept sorted, so additions are easy to review.
21pub const SPDX_LICENSE_EXCEPTIONS: &[&str] = &[
22    "389-exception",
23    "Asterisk-exception",
24    "Asterisk-linking-protocols-exception",
25    "Autoconf-exception-2.0",
26    "Autoconf-exception-3.0",
27    "Autoconf-exception-generic",
28    "Autoconf-exception-generic-3.0",
29    "Autoconf-exception-macro",
30    "Bison-exception-1.24",
31    "Bison-exception-2.2",
32    "Bootloader-exception",
33    "CGAL-linking-exception",
34    "CLISP-exception-2.0",
35    "Classpath-exception-2.0",
36    "Classpath-exception-2.0-short",
37    "DigiRule-FOSS-exception",
38    "Digia-Qt-LGPL-exception-1.1",
39    "FLTK-exception",
40    "Fawkes-Runtime-exception",
41    "Font-exception-2.0",
42    "GCC-exception-2.0",
43    "GCC-exception-2.0-note",
44    "GCC-exception-3.1",
45    "GNAT-exception",
46    "GNOME-examples-exception",
47    "GNU-compiler-exception",
48    "GPL-3.0-389-ds-base-exception",
49    "GPL-3.0-interface-exception",
50    "GPL-3.0-linking-exception",
51    "GPL-3.0-linking-source-exception",
52    "GPL-CC-1.0",
53    "GStreamer-exception-2005",
54    "GStreamer-exception-2008",
55    "Gmsh-exception",
56    "Google-Patent-WebM",
57    "Independent-modules-exception",
58    "KiCad-libraries-exception",
59    "LGPL-3.0-linking-exception",
60    "LLGPL",
61    "LLVM-exception",
62    "LZMA-exception",
63    "Libtool-exception",
64    "Linux-syscall-note",
65    "OCCT-exception-1.0",
66    "OCaml-LGPL-linking-exception",
67    "OpenJDK-assembly-exception-1.0",
68    "PCRE2-exception",
69    "PS-or-PDF-font-exception-20170817",
70    "QPL-1.0-INRIA-2004-exception",
71    "Qt-GPL-exception-1.0",
72    "Qt-LGPL-exception-1.1",
73    "Qwt-exception-1.0",
74    "RRDtool-FLOSS-exception-2.0",
75    "SANE-exception",
76    "SHL-2.0",
77    "SHL-2.1",
78    "SWI-exception",
79    "Simple-Library-Usage-exception",
80    "Spelling-Provider-LGPL-exception",
81    "Swift-exception",
82    "Texinfo-exception",
83    "UBDL-exception",
84    "Universal-FOSS-exception-1.0",
85    "WxWindows-exception-3.1",
86    "cryptsetup-OpenSSL-exception",
87    "eCos-exception-2.0",
88    "erlang-otp-linking-exception",
89    "fmt-exception",
90    "freertos-exception-2.0",
91    "gnu-javamail-exception",
92    "harbour-exception",
93    "i2p-gpl-java-exception",
94    "kvirc-openssl-exception",
95    "libpri-OpenH323-exception",
96    "mif-exception",
97    "mxml-exception",
98    "openvpn-openssl-exception",
99    "polyparse-exception",
100    "romic-exception",
101    "rsync-linking-exception",
102    "sqlitestudio-OpenSSL-exception",
103    "stunnel-exception",
104    "u-boot-exception-2.0",
105    "vsftpd-openssl-exception",
106    "x11vnc-openssl-exception",
107];