Skip to content

Commit 197a2da

Browse files
committed
Replace the spdx-rs dependency with a minimal in-tree SPDX tag-value parser
The spdx-rs crate is no longer maintained and is behind on its own dependency updates. The only function that collect-license-metadata uses from it is `spdx_rs::parsers::spdx_from_tag_value`, which parses the output of the `reuse` tool to extract file names, licences and copyright text. Replace this with a small minimal parser that handles just the subset of the SPDX tag-value format that is needed: `Tag: Value` line pairs and multi-line `<text>...</text>` blocks. Coincidentally, this gets rid of the last transitive dependency on syn v1.
1 parent 981cf69 commit 197a2da

5 files changed

Lines changed: 146 additions & 117 deletions

File tree

0 commit comments

Comments
 (0)