Skip to main content

generate_rust

Function generate_rust 

Source
pub fn generate_rust(file: &SynFile, opts: &RustOptions<'_>) -> String
Expand description

Generate #[repr(C)] Rust structs compatible with NASA cFS bindings.

command and telemetry packets become structs with the cFS header as the first field, matching the C ABI layout. struct and table items remain plain data structs. MID constants are emitted as pub const.