https://github.com/doubleopen-project/spdx-rs
Parse SPDX Documents to Rust strcts.
https://github.com/doubleopen-project/spdx-rs
license-management licenses licensing spdx
Last synced: 3 months ago
JSON representation
Parse SPDX Documents to Rust strcts.
- Host: GitHub
- URL: https://github.com/doubleopen-project/spdx-rs
- Owner: doubleopen-project
- License: mit
- Created: 2021-07-13T10:49:57.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T22:23:35.000Z (about 2 years ago)
- Last Synced: 2026-01-02T08:16:23.709Z (6 months ago)
- Topics: license-management, licenses, licensing, spdx
- Language: Rust
- Homepage:
- Size: 209 KB
- Stars: 7
- Watchers: 2
- Forks: 15
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SPDX Documents in Rust
[![crates.io-icon]][crates.io] [![docs.rs-icon]][docs.rs]
[crates.io-icon]: https://img.shields.io/crates/v/spdx-rs
[crates.io]: https://crates.io/crates/spdx-rs
[docs.rs-icon]: https://img.shields.io/docsrs/spdx-rs
[docs.rs]: https://docs.rs/spdx-rs
`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].
[SPDX documents]: https://spdx.github.io/spdx-spec/
[Serde]: https://serde.rs/
[integration tests]: https://github.com/doubleopen-project/spdx-rs/tree/main/tests/integration.rs
## License
The project is licensed under the [MIT License][LICENSE.txt].
[LICENSE.txt]: license.txt