Skip to main content

Crate voce_schema

Crate voce_schema 

Source
Expand description

Voce IR Schema — FlatBuffers type definitions and generated bindings.

This crate contains the IR schema definitions and the Rust bindings generated from FlatBuffers .fbs files. The schema defines every node type in the Voce IR: layout, state, motion, navigation, accessibility, theming, data, forms, SEO, and i18n.

§Architecture

The schema is the contract between the AI generation layer and the compilation pipeline. Any tool that produces JSON conforming to this schema can generate valid Voce IR.

FlatBuffers .fbs files live in schemas/ and are compiled to Rust bindings in src/generated/ via flatc.

§Regenerating Bindings

./scripts/regenerate-schema.sh

The script combines all .fbs files into a single compilation unit to avoid FlatBuffers cross-module codegen issues, then compiles to Rust.

Modules§

errors
Unified error taxonomy for the Voce IR pipeline.
voce
All Voce IR types — re-exported for ergonomic access.