12 releases
0.5.5 | Sep 19, 2023 |
---|---|
0.5.3 | Jun 29, 2023 |
0.5.2 | Dec 1, 2022 |
0.5.1 | Jul 5, 2022 |
0.1.0 | Jul 15, 2021 |
#442 in Parser implementations
14,086 downloads per month
Used in 10 crates
(9 directly)
155KB
3.5K
SLoC
SPDX Documents in Rust
spdx-rs
parses SPDX documents in multiple data formats to Rust structs.
Data formats
The library has been designed for working with SPDX documents in JSON. This is achieved with Serde, so any data format supported by Serde should work, as long as the naming is consistent with that used in JSON SPDX documents.
In addition to serializing and deserializing with Serde, deserializing documents in tag value format is supported with a custom parser.
Usage
Simple usage examples for parsing documents from JSON and tag-value formats can be found in the integration tests.
License
The project is licensed under the MIT License.
Dependencies
~2.8–9MB
~77K SLoC