hedl
The main HEDL library crate providing a unified API for working with the Hierarchical Entity Data Language.
Installation
[]
= "1.0"
# With optional format support
= { = "1.0", = ["yaml", "xml", "csv"] }
Features
yaml- YAML format supportxml- XML format supportcsv- CSV format supportparquet- Apache Parquet supportneo4j- Neo4j Cypher generationtoon- TOON format for LLMsserde- Serde serialization supportall-formats- Enable all format converters
Usage
use ;
// Parse HEDL
let hedl = r#"
%VERSION: 1.0
---
name: Example
value: 42
"#;
let doc = parse?;
// Convert to JSON
let json = to_json?;
println!;
// Parse from JSON
let doc2 = from_json?;
Crate Structure
This crate re-exports functionality from:
hedl-core- Core parsing and data modelhedl-c14n- Canonicalizationhedl-json- JSON conversionhedl-lint- Linting and validation
Optional re-exports (feature-gated):
hedl-yaml,hedl-xml,hedl-csv,hedl-parquet,hedl-neo4j,hedl-toon
License
Apache-2.0