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 --- crates/mozart-spdx-licenses/Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 crates/mozart-spdx-licenses/Cargo.toml (limited to 'crates/mozart-spdx-licenses/Cargo.toml') diff --git a/crates/mozart-spdx-licenses/Cargo.toml b/crates/mozart-spdx-licenses/Cargo.toml new file mode 100644 index 0000000..fc31b9f --- /dev/null +++ b/crates/mozart-spdx-licenses/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "mozart-spdx-licenses" +version.workspace = true +edition.workspace = true + +[dependencies] + +[build-dependencies] +serde.workspace = true +serde_json.workspace = true -- cgit v1.3.1