mavlink_bindgen

Function generate

Source
pub fn generate<P1: AsRef<Path>, P2: AsRef<Path>>(
    definitions_dir: P1,
    destination_dir: P2,
) -> Result<GeneratedBindings, BindGenError>
Expand description

Generate Rust MAVLink dialect binding for dialects present in definitions_dir into destination_dir.

If successful returns paths of generated bindings linked to their dialect definitions files.