vexil-store 0.2.2

Human-readable and binary file formats for Vexil schemas and data
Documentation

vexil-store

Human-readable (.vx) and binary (.vxb) file formats for Vexil schemas and data.

Part of the Vexil project.

Overview

vexil-store provides encode/decode for Vexil values against a compiled schema, a human-readable text format (.vx), and a compact binary format (.vxb) with a typed file header.

Usage

[dependencies]
vexil-store = "0.1"
vexil-lang = "0.1"
use vexil_store::{encode, decode, meta_schema, Value};

let schema = meta_schema();
let value = Value::String("hello".to_string());
let bytes = encode(&value, "MyType", schema).unwrap();
let decoded = decode(&bytes, "MyType", schema).unwrap();
assert_eq!(value, decoded);

License

Licensed under either of MIT or Apache-2.0 at your option.