pub fn generate_external_bindings(
    binding_generator: impl BindingGenerator,
    udl_file: impl AsRef<Utf8Path>,
    config_file_override: Option<impl AsRef<Utf8Path>>,
    out_dir_override: Option<impl AsRef<Utf8Path>>
) -> Result<()>
Expand description

Generate bindings for an external binding generator Ideally, this should replace the generate_bindings function below

Implements an entry point for external binding generators. The function does the following:


  • binding_generator: Type that implements BindingGenerator
  • udl_file: The path to the UDL file
  • config_file_override: The path to the configuration toml file, most likely called uniffi.toml. If None, the function will try to guess based on the crate’s root.
  • out_dir_override: The path to write the bindings to. If None, it will be the path to the parent directory of the udl_file