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
CompiledSchemaIR types andValuetrees.
Structs§
Enums§
- File
Format - Auto-detected file format.
- Magic
- Store
Decode Error - Errors from schema-driven decoding (bitpack bytes -> Value).
- Store
Encode Error - 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§
Functions§
- decode
- Decode bitpack bytes into a
Valueusing the given schema and type name. - detect_
format - Detect file format from the first bytes of a file.
- encode
- Encode a
Valueas 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.packmeta-schema. - parse
- Parse a
.vxtext 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
Valueagainst the named type in the given schema. - write_
header - Write a VxbHeader into a buffer.