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

#420 in Parser implementations

Download history 2657/week @ 2023-11-05 3037/week @ 2023-11-12 3245/week @ 2023-11-19 3633/week @ 2023-11-26 3953/week @ 2023-12-03 4235/week @ 2023-12-10 3688/week @ 2023-12-17 2430/week @ 2023-12-24 1818/week @ 2023-12-31 3856/week @ 2024-01-07 3189/week @ 2024-01-14 2944/week @ 2024-01-21 2683/week @ 2024-01-28 4094/week @ 2024-02-04 3824/week @ 2024-02-11 3738/week @ 2024-02-18

14,634 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
~78K SLoC