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: 24 days 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-26T13:25:13.000Z (about 2 months ago)
- Last Synced: 2025-06-11T10:00:11.583Z (about 1 month ago)
- Topics: rust, yaml
- Language: Rust
- Size: 206 KB
- Stars: 19
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
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.