tree: e966de2f4557945567594089603141add0f135c1 [path history] [tgz]
  1. Cargo.lock
  2. Cargo.toml
  3. deny.toml
  4. main.rs
  5. README.md
examples/04_gnu_licenses/README.md

04_gnu_licenses

This example shows how to deal with the GNU style licenses such as GPL, AGPL, LGPL, and GFDL

Requirement

license = "GPL-2.0-or-later AND LGPL-3.0-only"

Config

[licenses]
allow = [ "GPL-3.0" ]
copyleft = "deny"

Description

GNU style licenses deviate from most of the other licenses in the SPDX license list due to the way they use the -only and -or-later suffixes appended to the root name and version of the license. In this example, by allowed GPL-3.0 we satisfy the requirement of GPL-2.0-or-later, but because we deny copyleft, the LGPL-3.0-only is still rejected.