1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # IronSBE Codegen
//!
//! Code generation from SBE XML schemas.
//!
//! This crate provides:
//! - Rust code generation from SBE schemas
//! - Message encoder/decoder generation
//! - Type and enum generation
//! - Build script integration
pub use CodegenError;
pub use Generator;
/// Generates Rust code from an SBE XML schema string.
///
/// # Arguments
/// * `xml` - SBE XML schema content
///
/// # Returns
/// Generated Rust code as a string.
///
/// # Errors
/// Returns `CodegenError` if parsing or generation fails.
/// Generates Rust code from an SBE XML schema file.
///
/// # Arguments
/// * `path` - Path to the SBE XML schema file
///
/// # Returns
/// Generated Rust code as a string.
///
/// # Errors
/// Returns `CodegenError` if reading, parsing, or generation fails.