normalize
The current SPDX identifier for a deprecated one.
SPDX split the GNU licenses into -only and -or-later and retired the bare forms and the
+ suffix, but GPL-3.0 and LGPL-2.1+ are still what many manifests contain. The match
ignores case. Identifiers that are not deprecated give None.
Import
Section titled “Import”Cargo feature license (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
id | &str | The identifier to update. |
Returns
Section titled “Returns”Option<&'static str> — The replacement, such as "GPL-3.0-only" for "GPL-3.0", or None when id is not one of
the ten deprecated GNU identifiers (GPL, LGPL and AGPL, with and without +).
