Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kinnison/marked-data
A YAML representation library which explicitly retains provenance data
https://github.com/kinnison/marked-data
rust yaml
Last synced: 4 months ago
JSON representation
A YAML representation library which explicitly retains provenance data
- Host: GitHub
- URL: https://github.com/kinnison/marked-data
- Owner: kinnison
- License: mit
- Created: 2020-01-19T09:00:47.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T17:08:02.000Z (8 months ago)
- Last Synced: 2024-10-11T18:35:46.041Z (4 months ago)
- Topics: rust, yaml
- Language: Rust
- Size: 275 KB
- Stars: 13
- Watchers: 3
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
README
# Marked data
This is a collection of libraries which offer data provenance facilities and
then use that to provide a variety of marked data structures.The data marks are intended to be similar to, though not entirely the same as
data structures seen in other systems as `Span` or similar. Instead data marks
are a combination of that span-like data and also file sources. The intent here
being that combining data from multiple sources is a safe and sensible thing to
do and that after doing so, it is important to be able to discover where something
came from.Currently we provide:
* `marked-yaml`: A deliberately simplified YAML subset which supports data marking
## Marked YAML
The `marked-yaml` library offers a subset of YAML designed for configuration files
and similar use. The data it reads in is "marked" with its origin. If you want
to use `marked-yaml` with your existing `serde` applications, you can enable the
`serde` feature, and if you want the errors produced by the `marked-yaml`
deserializer to include nice paths to any problem, along with ensuring the marker
for the problem area is populated in any errors, use the `serde-path` feature.