Skip to main content

generate_bindings

Function generate_bindings 

Source
pub fn generate_bindings(
    header: &Path,
    options: &BindingOptions,
) -> Result<GeneratedBinding, String>
Expand description

Generate Rust bindings from a C header file.

This creates a Rust module with extern ā€œCā€ declarations that can be used to call the compiled C code.