Function uniffi_bindgen::macro_metadata::add_to_ci
source · pub fn add_to_ci(
iface: &mut ComponentInterface,
metadata_items: Vec<Metadata>
) -> Result<()>
Expand description
Add Metadata items to the ComponentInterface
This function exists to support the transition period where the uniffi::export
macro can only
handle some components. This means that crates need to continue using UDL files to define the
parts of the components that aren’t supported yet.
To make things work, we generate a ComponentInterface
from the UDL file, then combine it with
the Metadata
items that the macro creates.