Skip to main content

generate_from_file

Function generate_from_file 

Source
pub fn generate_from_file(path: &Path) -> Result<String, CodegenError>
Expand description

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.