vexilc
vexilc is the Vexil schema compiler. It validates schemas, generates code for multiple target languages, and provides tools for schema evolution and binary file inspection.
Usage
vexilc <subcommand> [args]
Subcommands
| Command | Description |
|---|---|
check | Validate a schema and print its hash |
codegen | Generate code for a single schema file |
build | Generate code for a multi-file project |
watch | Watch files and rebuild on changes |
compat | Compare schemas for breaking changes |
init | Create a new schema file |
hash | Print the BLAKE3 schema hash |
pack | Encode a .vx text file to .vxb binary |
unpack | Decode a .vxb binary file to .vx text |
format | Format a .vx text file |
info | Inspect .vxb/.vxc file headers |
compile | Compile a schema to .vxc binary format |
Global options
| Option | Description |
|---|---|
-V, --version | Print version |
-h, --help | Print help |
Targets
The --target option (used by codegen, build, and watch) accepts:
rust(default)typescriptgo