Expand description
§SBE code generator
This crate exposes a small API for generating zero‑copy Rust structures from an SBE XML schema. At a high level the process is:
- Parse the XML into an intermediate
Schemausing [parser::parse_schema]. - Transform the schema into Rust code strings with
[
codegen::generate]. - Write the resulting files to disk via
generate_to.
Generated structs derive the necessary traits from the
zerocopy crate and
include a parse_prefix helper so that a message can be viewed at
the front of a byte buffer without copying.
Structs§
- Generator
Options - Options that influence how code is generated.
Enums§
- Generator
Error - Errors produced by the generator.
Functions§
- generate
- Parse an XML schema and emit a collection of Rust source files.
- generate_
to - Read an XML schema and write the generated modules into a target
directory. This convenience function creates the directory if it
does not exist and writes one
.rsfile per message.