Skip to main content

Crate vexil_store

Crate vexil_store 

Source
Expand description

Schema-driven encoder/decoder with .vx text and .vxb binary file formats.

Provides encode/decode for Value trees, human-readable .vx text format, and typed .vxb binary format with schema hash verification.

Re-exports§

pub use convert::compiled_schema_to_value;
pub use convert::schema_store_to_value;

Modules§

convert
Conversion between CompiledSchema IR types and Value trees.

Structs§

FormatOptions
Lexer
Span
Spanned
VxbHeader

Enums§

FileFormat
Auto-detected file format.
Magic
StoreDecodeError
Errors from schema-driven decoding (bitpack bytes -> Value).
StoreEncodeError
Errors from schema-driven encoding (Value -> bitpack bytes).
Token
Value
Dynamic representation of any Vexil-typed value.
VxError
Errors from parsing or formatting .vx text.
VxbError
Errors from reading/writing binary .vxb files.

Constants§

FORMAT_VERSION

Functions§

decode
Decode bitpack bytes into a Value using the given schema and type name.
detect_format
Detect file format from the first bytes of a file.
encode
Encode a Value as bitpack bytes using the given schema and type name.
format
Format a slice of Values as .vx text.
meta_schema
Re-exports the compiled meta-schemas from vexil-lang.
pack_schema
The compiled vexil.pack meta-schema.
parse
Parse a .vx text file into a list of top-level values, guided by a compiled schema.
read_header
Read a VxbHeader from a byte slice. Returns (header, bytes_consumed).
validate
Validate a Value against the named type in the given schema.
write_header
Write a VxbHeader into a buffer.