Skip to content

Releases: EmbarkStudios/spdx

Release 0.3.4

26 Mar 08:38
Compare
Choose a tag to compare

Added

  • Added Expression::iter() which iterates over both the license requirements and the operators.

Release 0.3.3

26 Mar 08:38
Compare
Choose a tag to compare

Changed

  • Updated to version 3.8 of the SPDX license list

Release 0.3.2

26 Mar 08:37
Compare
Choose a tag to compare

Changed

  • PR#19 added the #[non_exhaustive] attribute to the new ParseMode enum, which bumped the minimum required Rust version to use this crate to 1.40. PR#21 removed this attribute as that enum is primarily an input for this crate, and had little benefit.

Release 0.3.1

26 Mar 08:37
Compare
Choose a tag to compare

Added

  • PR#19 Added ParseMode enum, which has a Lax variant that allows certain invvalid license identifiers found in some crates on crates.io, as well as the invalid / expression separator. Thanks @kornel!

Release 0.3.0

26 Mar 08:37
b0f88df
Compare
Choose a tag to compare

Added

  • Added LicenseId::is_gnu to indicate the GNU licenses (GPL, AGPL, LGPL, GFDL), which use a different suffix format than all other licenses
  • std::error::Error is now (properly) implemented for error::ParseError
  • LicenseReq not implements From<LicenseId>

Changed

  • Lexer and Token can now be reached via the lexer module
  • parser and expression are no longer part of the public API
  • IS_COPYLEFT, IS_DEPRECATED, IS_FSF_LIBRE, and IS_OSI_APPROVED are no longer part of the public API
  • The GFDL* licenses are now marked as copyleft

Fixed

  • When creating a LicenseReq from a GNU license, the license identifier is converted into its base form,
    eg. GPL-2.0-or-later becomes GPL-2.0+ so that the GNU style license identifiers can be used just the same
    as all of the other ones. See this issue

Release 0.2.4

26 Mar 08:36
Compare
Choose a tag to compare

Added

  • Impl Display for Licensee

Release 0.2.3

26 Mar 08:36
661e3d2
Compare
Choose a tag to compare

Changed

  • Updated the list of licenses to version 3.7 of the SPDX license list

Release 0.2.2

26 Mar 08:35
eacab8c
Compare
Choose a tag to compare

Added

  • Added LicenseId::full_name which is the full name for the license, eg "MIT License" for the "MIT" short identifier

Release 0.2.1

26 Mar 08:35
8d8a758
Compare
Choose a tag to compare

Added

Release 0.2.0

26 Mar 08:34
6df4065
Compare
Choose a tag to compare

Added

  • Added a Expression which can parse and validate an SPDX license expression is
    both syntactically and semantically correct, as well as evaluate the expression via
    a user provided callback
  • Added an update exe for pulling new SDPX information, copied from https://github.com/rust-lang-nursery/license-exprs
  • Added support for some of the metadata available from the SPDX format, namely "IsDeprecated", "IsFSFLibre", and "IsOSIApproved"

Changed

  • Uhm...everything. I hope no one was using 0.1.0.
  • Use a better lexer, mostly copied from ehuss/license-exprs#29