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

Download history 3560/week @ 2023-12-16 2333/week @ 2023-12-23 1659/week @ 2023-12-30 3729/week @ 2024-01-06 2985/week @ 2024-01-13 2904/week @ 2024-01-20 2705/week @ 2024-01-27 3738/week @ 2024-02-03 3689/week @ 2024-02-10 3828/week @ 2024-02-17 2856/week @ 2024-02-24 3850/week @ 2024-03-02 4041/week @ 2024-03-09 3161/week @ 2024-03-16 2989/week @ 2024-03-23 2850/week @ 2024-03-30

13,725 downloads per month
Used in 5 crates (4 directly)

MIT license

155KB
3.5K SLoC

SPDX Documents in Rust

crates.io-icon docs.rs-icon

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

~3–10MB
~77K SLoC