[−][src]Crate spdx
Re-exports
pub use error::ParseError; |
pub use expression::Expression; |
Modules
error | |
expression | |
parser |
Structs
ExceptionId | Unique identifier for a particular exception |
Lexer | Allows iteration through a license expression, yielding a token or a parser error |
LicenseId | Unique identifier for a particular license |
LicenseReq | Represents a single license requirement, which must include a valid LicenseItem, and may allow current a future versions of the license, and may also allow for a specific exception |
Licensee | A convenience wrapper for a license and optional exception that can be checked against a license requirement to see if it satisfies/matches the requirement |
Enums
LicenseItem | A single license term in a license expression, according to the SPDX spec. This can be either an SPDX license, which is mapped to a LicenseId from a valid SPDX short identifier, or else a document AND/OR license ref |
Token |
Constants
IS_COPYLEFT | |
IS_DEPRECATED | |
IS_FSF_LIBRE | |
IS_OSI_APPROVED |
Functions
exception_id | Attempts to find an ExceptionId for the string |
license_id | Attempts to find a LicenseId for the string Note: any '+' at the end is trimmed |
license_version | Returns the version number of the SPDX list from which the license and exception identifiers are sourced from |