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 2854/week @ 2024-08-09 2621/week @ 2024-08-16 3042/week @ 2024-08-23 2811/week @ 2024-08-30 2874/week @ 2024-09-06 2982/week @ 2024-09-13 3149/week @ 2024-09-20 2626/week @ 2024-09-27 3004/week @ 2024-10-04 2771/week @ 2024-10-11 3822/week @ 2024-10-18 3385/week @ 2024-10-25 3624/week @ 2024-11-01 3540/week @ 2024-11-08 3451/week @ 2024-11-15 2849/week @ 2024-11-22

14,086 downloads per month
Used in 10 crates (9 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

~2.8–9MB
~77K SLoC