Crates.io | spdx-rs |
lib.rs | spdx-rs |
version | 0.5.5 |
source | src |
created_at | 2021-07-15 08:05:57.603662 |
updated_at | 2023-09-19 12:19:48.981145 |
description | Parse and interact with SPDX Documents |
homepage | https://github.com/doubleopen-project/spdx-rs |
repository | https://github.com/doubleopen-project/spdx-rs |
max_upload_size | |
id | 423016 |
size | 164,519 |
spdx-rs
parses SPDX documents in multiple data formats to Rust structs.
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.
Simple usage examples for parsing documents from JSON and tag-value formats can be found in the integration tests.
The project is licensed under the MIT License.