From 1ef1ebdcf50ae1358ec06e3c6a2fb797a8461617 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 22 Feb 2026 12:27:20 +0900 Subject: feat(spdx): add mozart-spdx-licenses crate for SPDX license validation Add new workspace crate that validates SPDX license expressions using data from composer/spdx-licenses (git submodule). Includes build.rs codegen from JSON, recursive descent expression parser supporting AND/OR/WITH/LicenseRef, and integrates into mozart-core's validate_license function. Co-Authored-By: Claude Opus 4.6 --- Cargo.lock | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 5daa259..663754e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1131,6 +1131,7 @@ dependencies = [ "anyhow", "colored", "dialoguer", + "mozart-spdx-licenses", "regex", "serde", "serde_json", @@ -1166,6 +1167,14 @@ dependencies = [ "zip", ] +[[package]] +name = "mozart-spdx-licenses" +version = "0.1.0" +dependencies = [ + "serde", + "serde_json", +] + [[package]] name = "normalize-line-endings" version = "0.3.0" -- cgit v1.3.1