brine_kiwi_compiler/lib.rs
1//! brine-kiwi-compiler
2//!
3//! This crate implements:
4//! 1) A tokenizer + parser for `.kiwi` IDL files,
5//! 2) A schema verifier (duplicate types, recursive structs, missing types, etc.),
6//! 3) `encode_binary_schema` / `decode_binary_schema` (flat‐buffer style),
7//! 4) Code generation (`compile_schema_to_rust` → `String`),
8//! 5) Error types (`KiwiError`), and `FromKiwi` trait.
9
10pub mod error;
11pub mod types;
12pub mod utils;
13pub mod tokenizer;
14pub mod parser;
15pub mod verifier;
16pub mod compiler;
17pub mod gen_rust;
18pub mod traits;
19
20pub use compiler::compile_schema;
21pub use compiler::decode_binary_schema;
22pub use compiler::encode_binary_schema;
23pub use gen_rust::compile_schema_to_rust;